From fc87fc3a29e8e515dff866159601a734e3ad4a2f Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 17 Jun 2021 12:07:15 +0530 Subject: [PATCH 001/243] Add option to show all pages in archive usage => In site config `Params.ShowAllPagesInArchive: true` --- layouts/_default/archives.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index f69b2727..bb85da38 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -10,6 +10,11 @@ {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + +{{- if .Site.Params.ShowAllPagesInArchive }} +{{- $pages = site.RegularPages }} +{{- end }} + {{- range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }}
From f9b796d1685c1d7e8e4015d95c9835b5b82fb2fe Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Jony Date: Sat, 3 Jul 2021 12:17:49 +0600 Subject: [PATCH 002/243] Add bn.yaml Bengali Translation (#433) --- i18n/bn.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 i18n/bn.yaml diff --git a/i18n/bn.yaml b/i18n/bn.yaml new file mode 100644 index 00000000..602926dc --- /dev/null +++ b/i18n/bn.yaml @@ -0,0 +1,17 @@ +- id: prev_page + translation: "আাগের পেজ" + +- id: next_page + translation: "পরের পেজ" + +- id: translations + translation: "ট্রান্সলেশন" + +- id: home + translation: "হোম" + +- id: code_copy + translation: "কপি" + +- id: code_copied + translation: "কপি হয়েছে!" From 09accb9566ff4029270d2659c13942ff9dfc5536 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 4 Jul 2021 23:23:40 +0530 Subject: [PATCH 003/243] Update README.md Update Hugo themes URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bed63511..baa92f52 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of doc [![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=0.82.0&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.82.0) [![Build GH-Pages](https://github.com/adityatelange/hugo-PaperMod/workflows/Build%20GH-Pages/badge.svg)](https://github.com/adityatelange/hugo-PaperMod/deployments/activity_log?environment=github-pages) [![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE) -[![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/hugo-papermod/) +[![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/themes/hugo-papermod/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=adityatelange_hugo-PaperMod&metric=alert_status)](https://sonarcloud.io/dashboard?id=adityatelange_hugo-PaperMod) ![code-size](https://img.shields.io/github/languages/code-size/adityatelange/hugo-PaperMod) From 00ddeb421ad2ca7bebc2e39d88353725340d5b98 Mon Sep 17 00:00:00 2001 From: koenr Date: Wed, 7 Jul 2021 13:16:15 +0200 Subject: [PATCH 004/243] Add Dutch translation nl.yaml (#460) --- i18n/nl.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 i18n/nl.yaml diff --git a/i18n/nl.yaml b/i18n/nl.yaml new file mode 100644 index 00000000..63a99319 --- /dev/null +++ b/i18n/nl.yaml @@ -0,0 +1,28 @@ +- id: prev_page + translation: "Vorige" + +- id: next_page + translation: "Volgende" + +- id: read_time + translation: + one: "1 min" + other: "{{ .Count }} min" + +- id: toc + translation: "Inhoudsopgave" + +- id: translations + translation: "Vertalingen" + +- id: home + translation: "Startpagina" + +- id: edit_post + translation: "Bewerk" + +- id: code_copy + translation: "kopieer" + +- id: code_copied + translation: "gekopieerd!" From 664299cc7cf96a3b410dfa7ec20a32378f4ec10b Mon Sep 17 00:00:00 2001 From: "Orwill Q. Song" Date: Wed, 7 Jul 2021 19:17:50 +0800 Subject: [PATCH 005/243] Update Chinese translation zh.yaml (#461) --- i18n/zh.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/i18n/zh.yaml b/i18n/zh.yaml index cb84ce99..006528b6 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -14,3 +14,12 @@ - id: translations translation: "语言" + +- id: home + translation: "主页" + +- id: code_copy + translation: "复制" + +- id: code_copied + translation: "已复制!" From 129b5bd06359a7c580ee9369a37566388be3db04 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 3 Jul 2021 14:29:36 +0530 Subject: [PATCH 006/243] Fix image margin too close to text --- assets/css/common/post-single.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index d7ed3fba..fb322baa 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -237,10 +237,11 @@ .post-content img { border-radius: 4px; + margin: 1rem 0; } .post-content img[src*="#center"] { - margin: auto; + margin: 1rem auto; } .post-content figure.align-center { From 191c16b0c87ce47b39d216e27a079acae13b56e3 Mon Sep 17 00:00:00 2001 From: Ayon Khan Date: Mon, 2 Aug 2021 16:48:27 +0600 Subject: [PATCH 007/243] Update Bengali (bn) translations (#482) * Add missing Bengali translations --- i18n/bn.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/i18n/bn.yaml b/i18n/bn.yaml index 602926dc..9fdafd16 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -1,17 +1,28 @@ - id: prev_page - translation: "আাগের পেজ" + translation: "পূর্বের পাতা" - id: next_page - translation: "পরের পেজ" + translation: "পরবর্তী পাতা" + +- id: read_time + translation: + one : "১ মিনিট" + other: "{{ .Count }} মিনিট" + +- id: toc + translation: "সূচিপত্র" - id: translations - translation: "ট্রান্সলেশন" + translation: "অনুবাদসমূহ" - id: home - translation: "হোম" + translation: "হোম" + +- id: edit_post + translation: "সম্পাদনা করুন" - id: code_copy - translation: "কপি" + translation: "কপি করুন" - id: code_copied translation: "কপি হয়েছে!" From 747e2bb76028d73a122a965bf9cc0cdd257ce32f Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 2 Aug 2021 16:20:14 +0530 Subject: [PATCH 008/243] fix typo in PULL_REQUEST_TEMPLATE --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index ceb8eb40..d49e821b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -38,6 +38,6 @@ is closed automatically when this PR is merged. - [ ] This change adds/updates translations and I have used the [template present here](https://github.com/adityatelange/hugo-PaperMod/wiki/Translations#want-to-add-your-language-). - [ ] I have enabled [maintainer edits for this PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork). - [ ] This change adds a Social Icon which has a permissive license to use it. -- [ ] This change **does not** any CDN resources/links. +- [ ] This change **does not** include any CDN resources/links. - [ ] This change **does not** include any unrelated scripts such as bash and python scripts. - [ ] This change updates the overridden internal templates from HUGO's repository. From 81fcd8f9d416b536e929a32670df0bcdbe628276 Mon Sep 17 00:00:00 2001 From: Daniel H Date: Tue, 3 Aug 2021 06:08:23 +0100 Subject: [PATCH 009/243] Remove extraneous space in toc.html (#488) Fixes errors in lower version of Hugo --- layouts/partials/toc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 89b2b7c6..42f7e615 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -68,7 +68,7 @@ {{- end -}} {{- end }}
  • - {{- $header | safeHTML -}} + {{- $header | safeHTML -}} {{- else }}
  • {{- $header | safeHTML -}} From a3ad238f78757133f9af43cfeaa1e837858218f5 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" <20735818+danielfdickinson@users.noreply.github.com> Date: Tue, 10 Aug 2021 10:22:47 -0400 Subject: [PATCH 010/243] Fix profileMode imageUrl preloaded on every page (#495) Instead we now only preload on the home page. Closes #494 Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com> --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ac9108a0..d696594e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -59,7 +59,7 @@ {{- end }} {{- with .Site.Params.profileMode }} -{{- if and .enabled .imageUrl }} +{{- if and .enabled .imageUrl $.IsHome }} {{- end }} {{- end }} From 0c4ec163a67f947df611c674f7b05c4dadbdcc8a Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Wed, 28 Jul 2021 18:47:37 +0200 Subject: [PATCH 011/243] Add social icon for Flickr Source: https://simpleicons.org Fixes #449 Signed-off-by: Kevin Decherf --- layouts/partials/svg.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 9a48730f..e12157b3 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -136,6 +136,11 @@ stroke-linecap="round" stroke-linejoin="round"> +{{- else if (eq $icon_name "flickr") -}} + + + {{- else if (eq $icon_name "freepik") -}} From e44cef81c6fc40606ea5761334ba2078f8dd3ccc Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Wed, 28 Jul 2021 18:48:26 +0200 Subject: [PATCH 012/243] Add social icon for Liberapay Source: https://en.liberapay.com/about/logos Fixes #483 Signed-off-by: Kevin Decherf --- layouts/partials/svg.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index e12157b3..4208296e 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -243,6 +243,15 @@ +{{- else if (eq $icon_name "liberapay") -}} + + + + + + {{- else if (eq $icon_name "linkedin") -}} From 1458d8de67dde186bddd6b593eb84ed8ceb6bef9 Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Wed, 28 Jul 2021 18:48:48 +0200 Subject: [PATCH 013/243] Add social icon for Matrix Source: https://simpleicons.org Fixes #450 Signed-off-by: Kevin Decherf --- layouts/partials/svg.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 4208296e..2ea1e6bd 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -269,6 +269,11 @@ d="M17.832 8.633v5h-1.978V8.78c0-1.023-.43-1.542-1.29-1.542-.95 0-1.427.616-1.427 1.834v2.655H11.17V9.072c0-1.218-.476-1.834-1.427-1.834-.86 0-1.29.52-1.29 1.542v4.852H6.475V8.633c0-1.022.26-1.834.782-2.434.538-.6 1.243-.909 2.118-.909 1.012 0 1.779.39 2.286 1.169l.492.827.493-.827c.507-.78 1.274-1.169 2.286-1.169.875 0 1.58.308 2.118.909.522.6.782 1.412.782 2.434" fill="currentColor" stroke="none" /> +{{- else if (eq $icon_name "matrix") -}} + + + {{- else if (eq $icon_name "medium") -}} From 7d67d64bb7610443239fa7085ebabbc70ac7cc11 Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Wed, 28 Jul 2021 18:49:09 +0200 Subject: [PATCH 014/243] Add social icon for Server Fault Source: https://simpleicons.org Signed-off-by: Kevin Decherf --- layouts/partials/svg.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 2ea1e6bd..82a0141d 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -325,6 +325,11 @@ +{{- else if (eq $icon_name "serverfault") -}} + + + {{- else if (eq $icon_name "soundcloud") -}} Date: Wed, 18 Aug 2021 20:39:38 +0530 Subject: [PATCH 015/243] Update README --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index baa92f52..62b0727b 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@
    > Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper). -> The goal of this project is to add more Features and customization to the og theme. +> The goal of this project is to add more features and customization to the og theme. -The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of documentation about Installation, Features with few more stuff. Make sure you visit it, to get the awesome hands-on experience and get known about the features ... +The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of documentation about Installation, Features with a few more stuff. Make sure you visit it, to get an awesome hands-on experience and get to know about the features ... **ExampleSite** can be found here: [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source. @@ -35,7 +35,7 @@ The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of doc - Table of Content Generation (newer implementation). - Archive of posts. - Social Icons (home-info and profile-mode) -- Social-Media Share buttons on post. +- Social-Media Share buttons on posts. - Menu location indicator. - Multilingual support. (with language selector) - Taxonomies @@ -45,9 +45,9 @@ The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of doc - Multiple Author support. - Search Page with Fuse.js - Other Posts suggestion below a post -- BreadCrumb Navigation +- Breadcrumb Navigation - Code Block Copy buttons -- No webpack, nodejs and other dependencies required to edit the theme. +- No webpack, nodejs and other dependencies are required to edit the theme. Read Wiki For More Details => **[PaperMod - Features](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)** @@ -86,4 +86,5 @@ Release ChangeLog has info about stuff added: **[Releases](https://github.com/ad - [**Highlight.js**](https://github.com/highlightjs/highlight.js) - [**Fuse.js**](https://github.com/krisk/fuse) - [**Feather Icons**](https://github.com/feathericons/feather) +- [**Simple Icons**](https://github.com/simple-icons/simple-icons) - **All Contributors and Supporters** From dcbe6277bbbf6780c4697b5180d2ace51ba4196d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ian=20Gr=C3=BCnig?= Date: Sun, 22 Aug 2021 08:15:28 +0200 Subject: [PATCH 016/243] Add width and height attributes to cover images (#519) - Ensures that the browser can allocate the correct amount of space in the document while the image is loading. - Reduces CLS #499 --- assets/css/common/post-entry.css | 1 + layouts/partials/cover.html | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index ac2afcc9..2789f410 100644 --- a/assets/css/common/post-entry.css +++ b/assets/css/common/post-entry.css @@ -98,6 +98,7 @@ border-radius: var(--radius); pointer-events: none; width: 100%; + height: auto; } .entry-cover a { diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html index 3b61a055..e7e2df4f 100644 --- a/layouts/partials/cover.html +++ b/layouts/partials/cover.html @@ -15,8 +15,9 @@ {{- if (ge $cover.Width $size) -}} {{ printf "%s %s" (($cover.Resize (printf "%sx" $size)).Permalink) (printf "%sw ," $size) -}} {{ end }} - {{- end -}}{{$cover.Permalink }} {{printf "%dw" ($cover.Width)}}" - sizes="(min-width: 768px) 720px, 100vw" src="{{ $cover.Permalink }}" alt="{{ $alt }}" /> + {{- end -}}{{$cover.Permalink }} {{printf "%dw" ($cover.Width)}}" + sizes="(min-width: 768px) 720px, 100vw" src="{{ $cover.Permalink }}" alt="{{ $alt }}" + width="{{ $cover.Width }}" height="{{ $cover.Height }}"> {{- else }}{{/* Unprocessable image or responsive images disabled */}} {{ $alt }} {{- end }} From 4970e61c7b4dc8b9549ba7faacd427bfcb844921 Mon Sep 17 00:00:00 2001 From: Pikhosh <73311467+pikhosh@users.noreply.github.com> Date: Wed, 25 Aug 2021 21:28:59 +0430 Subject: [PATCH 017/243] Update fa translations fa.yaml (#534) --- i18n/fa.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/i18n/fa.yaml b/i18n/fa.yaml index 3cdd047c..3fd5927c 100644 --- a/i18n/fa.yaml +++ b/i18n/fa.yaml @@ -1,16 +1,28 @@ - id: prev_page - translation: "صفحهٔ قبل" + translation: "صفحه قبلی" - id: next_page - translation: "صفحهٔ بعد" + translation: "صفحه بعدی" - id: read_time translation: - one : "1 دقیقه" + one: "۱ دقیقه" other: "{{ .Count }} دقیقه" - id: toc translation: "فهرست مطالب" - id: translations - translation: "ترجمه‌ها" + translation: "ترجمه ها" + +- id: home + translation: "خانه" + +- id: edit_post + translation: "ویرایش" + +- id: code_copy + translation: "کپی" + +- id: code_copied + translation: "کپی شد!" \ No newline at end of file From e5ba0272de82594290cbfcf6ef99e985c62d485a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Joly?= <7347374+cljoly@users.noreply.github.com> Date: Fri, 27 Aug 2021 17:29:50 +0000 Subject: [PATCH 018/243] Never display the ToC when it would be empty (#532) --- layouts/partials/toc.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 42f7e615..f6055c61 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,13 +1,13 @@ +{{- $headers := findRE "(.|\n])+?" .Content -}} +{{- $has_headers := ge (len $headers) 1 -}} +{{- if $has_headers -}}
    {{- i18n "toc" | default "Table of Contents" }}
    -
    - {{- $headers := findRE "(.|\n])+?" .Content -}} - {{- $has_headers := ge (len $headers) 1 -}} - {{- if $has_headers -}} +
    {{- $largest := 6 -}} {{- range $headers -}} {{- $headerLevel := index (findRE "[1-6]" . 1) 0 -}} @@ -87,7 +87,7 @@ {{- end -}} {{- end }} - {{- end }}
    +{{- end }} From da1de88886c497296a26de2c7508001d4b935bbb Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 27 Aug 2021 23:10:43 +0530 Subject: [PATCH 019/243] Add svg icon for researchgate source: https://simpleicons.org/?q=researchgate --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 82a0141d..cb277c5b 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -318,6 +318,12 @@ +{{- else if (eq $icon_name "researchgate") -}} + + + {{- else if (eq $icon_name "rss") -}} From f70debb55ae303c0714eced3db601af5191a3a2c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 27 Aug 2021 23:16:44 +0530 Subject: [PATCH 020/243] Add svg icon for googlescholar source: https://simpleicons.org/?q=googlescholar --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index cb277c5b..b6a214b7 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -176,6 +176,12 @@ +{{- else if (eq $icon_name "googlescholar") -}} + + + {{- else if (eq $icon_name "hackerone") -}} Date: Fri, 27 Aug 2021 23:17:38 +0530 Subject: [PATCH 021/243] Refactor svgs --- layouts/partials/svg.html | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index b6a214b7..f0bed7a2 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -139,8 +139,8 @@ {{- else if (eq $icon_name "flickr") -}} - + d="M5.334 6.666C2.3884 6.666 0 9.055 0 12c0 2.9456 2.3884 5.334 5.334 5.334 2.9456 0 5.332-2.3884 5.332-5.334 0-2.945-2.3864-5.334-5.332-5.334zm13.332 0c-2.9456 0-5.332 2.389-5.332 5.334 0 2.9456 2.3864 5.334 5.332 5.334C21.6116 17.334 24 14.9456 24 12c0-2.945-2.3884-5.334-5.334-5.334Z" /> + {{- else if (eq $icon_name "freepik") -}} @@ -174,7 +174,8 @@ {{- else if (eq $icon_name "goodreads") -}} - + {{- else if (eq $icon_name "googlescholar") -}} + d="m104.28 271.1c-3.571 0-6.373-.466-8.41-1.396-2.037-.93-3.495-2.199-4.375-3.809-.88-1.609-1.308-3.457-1.282-5.544.025-2.086.313-4.311.868-6.675l9.579-40.05 11.69-1.81-10.484 43.44c-.202.905-.314 1.735-.339 2.489-.026.754.113 1.421.415 1.999.302.579.817 1.044 1.546 1.395.729.353 1.747.579 3.055.679l-2.263 9.278" /> + d="m146.52 246.14c0 3.671-.604 7.03-1.811 10.07-1.207 3.043-2.879 5.669-5.01 7.881-2.138 2.213-4.702 3.935-7.693 5.167-2.992 1.231-6.248 1.848-9.767 1.848-1.71 0-3.42-.151-5.129-.453l-3.394 13.651h-11.162l12.52-52.19c2.01-.603 4.311-1.143 6.901-1.622 2.589-.477 5.393-.716 8.41-.716 2.815 0 5.242.428 7.278 1.282 2.037.855 3.708 2.024 5.02 3.507 1.307 1.484 2.274 3.219 2.904 5.205.627 1.987.942 4.11.942 6.373m-27.378 15.461c.854.202 1.91.302 3.167.302 1.961 0 3.746-.364 5.355-1.094 1.609-.728 2.979-1.747 4.111-3.055 1.131-1.307 2.01-2.877 2.64-4.714.628-1.835.943-3.858.943-6.071 0-2.161-.479-3.998-1.433-5.506-.956-1.508-2.615-2.263-4.978-2.263-1.61 0-3.118.151-4.525.453l-5.28 21.948" /> {{- else if (eq $icon_name "linkedin") -}} @@ -278,7 +279,7 @@ {{- else if (eq $icon_name "matrix") -}} + d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453 0 .872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755 0 0 0-.18-.66 1.106 1.106 0 0 0-.438-.448c-.194-.11-.457-.166-.785-.166-.332 0-.6.064-.803.189a1.38 1.38 0 0 0-.48.499 1.946 1.946 0 0 0-.231.696 5.56 5.56 0 0 0-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074 0 0 0-.143-.688 1.052 1.052 0 0 0-.415-.503c-.194-.125-.476-.19-.854-.19-.111 0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z" /> {{- else if (eq $icon_name "medium") -}} {{- else if (eq $icon_name "researchgate") -}} - + @@ -340,7 +341,7 @@ stroke-linecap="round" stroke-linejoin="round"> {{- else if (eq $icon_name "serverfault") -}} + d="M24 18.185v2.274h-4.89v-2.274H24zm-24-.106h11.505v2.274H0v-2.279.005zm12.89 0h4.89v2.274h-4.89v-2.279.005zm6.221-3.607H24v2.274h-4.89l.001-2.274zM0 14.367h11.505v2.274H0v-2.274zm12.89 0h4.89v2.274h-4.89v-2.274zm6.221-3.346H24v2.273h-4.89l.001-2.273zM0 10.916h11.505v2.271H0v-2.271zm12.89 0h4.89v2.271h-4.89v-2.271zm6.22-3.609H24v2.279h-4.89V7.307zM0 7.206h11.505V9.48H0V7.201v.005zm12.89 0h4.89V9.48h-4.89V7.201v.005zm6.221-3.556H24v2.276h-4.89v-2.28l.001.004zM0 3.541h11.505v2.274H0V3.541zm12.89 0h4.89v2.274h-4.89V3.541z" /> {{- else if (eq $icon_name "soundcloud") -}} @@ -391,7 +392,10 @@ stroke-linecap="round" stroke-linejoin="round"> {{- else if (eq $icon_name "spotify") -}} - + + + {{- else if (eq $icon_name "stackoverflow") -}} @@ -429,7 +433,8 @@ stroke-linecap="round" stroke-linejoin="round"> {{- else if (eq $icon_name "xda") -}} - + {{- else if (eq $icon_name "youtube") -}} Date: Mon, 30 Aug 2021 15:22:22 +0530 Subject: [PATCH 022/243] Add missing `[draft]` tag on archive page --- layouts/_default/archives.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index bb85da38..1ccfb023 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -30,6 +30,7 @@

    {{- .Title | markdownify }} + {{- if .Draft }}
      [draft]
    {{- end }}

    {{- partial "post_meta.html" . -}} From ee81fe77ad30cc55c89c738f1532947c723321d0 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 1 Sep 2021 18:54:12 +0530 Subject: [PATCH 023/243] Update PULL_REQUEST_TEMPLATE.md Add: I have verified that the code works as described/as intended. --- .github/PULL_REQUEST_TEMPLATE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d49e821b..00b856cb 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -37,6 +37,7 @@ is closed automatically when this PR is merged. - [ ] This change adds/updates translations and I have used the [template present here](https://github.com/adityatelange/hugo-PaperMod/wiki/Translations#want-to-add-your-language-). - [ ] I have enabled [maintainer edits for this PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork). +- [ ] I have verified that the code works as described/as intended. - [ ] This change adds a Social Icon which has a permissive license to use it. - [ ] This change **does not** include any CDN resources/links. - [ ] This change **does not** include any unrelated scripts such as bash and python scripts. From 0eac254d5801aaf7fd5c0516b563dffc4f47c8b3 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 2 Sep 2021 13:26:05 +0530 Subject: [PATCH 024/243] Enable `summary` in Section pages --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d696594e..08ad70a5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,7 +18,7 @@ {{- range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- else }} {{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- end -}}" /> {{- end }} - From bc99ae777dcbf28dfe6c1db591f20ac72831c700 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 2 Sep 2021 13:33:47 +0530 Subject: [PATCH 025/243] Allow adding `Content` on list pages --- layouts/_default/list.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0131412e..0acb980b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,6 +16,12 @@ {{- end }} +
    + {{- if not (.Param "disableAnchoredHeadings") }} + {{- partial "anchored_headings.html" .Content -}} + {{- else }}{{ .Content }}{{ end }} +
    + {{- $pages := union .RegularPages .Sections }} {{- if .IsHome }} From 162d80071f2043179606137478919dd3a8a4ea53 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 2 Sep 2021 13:36:33 +0530 Subject: [PATCH 026/243] Allow adding markdown description on list pages --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0acb980b..110c2450 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@

    {{ .Title }}

    {{- if .Description }}
    - {{ .Description }} + {{ .Description | markdownify }}
    {{- end }} From b4393b3d6e775d9c05b92b3f35bd74f5c3475ef5 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 2 Sep 2021 13:43:08 +0530 Subject: [PATCH 027/243] Add `post-content` only if it exists --- layouts/_default/list.html | 2 ++ layouts/_default/single.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 110c2450..57f9ad37 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,11 +16,13 @@ {{- end }} +{{- if .Content }}
    {{- if not (.Param "disableAnchoredHeadings") }} {{- partial "anchored_headings.html" .Content -}} {{- else }}{{ .Content }}{{ end }}
    +{{- end }} {{- $pages := union .RegularPages .Sections }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8a85fc81..8d42cd75 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -25,11 +25,15 @@ {{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} {{- end }} + + {{- if .Content }}
    {{- if not (.Param "disableAnchoredHeadings") }} {{- partial "anchored_headings.html" .Content -}} {{- else }}{{ .Content }}{{ end }}
    + {{- end }} +