From 65f84d6f197c5212b26289a4b99b8198a582c0d4 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 8 Feb 2021 20:21:26 +0530 Subject: [PATCH 001/438] use Parent's Permalink for breadcrumb nav --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 658d79cc45..ca054336aa 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@
{{- if (.Param "ShowBreadCrumbs")}} - \ No newline at end of file + diff --git a/layouts/partials/translation_list.html b/layouts/partials/translation_list.html index a2c2d86cef..5e807a97bc 100644 --- a/layouts/partials/translation_list.html +++ b/layouts/partials/translation_list.html @@ -1,9 +1,9 @@ {{- if .IsTranslated -}} -{{- if (ne .Layout "search")}} +{{- if (ne .Layout "search") }} {{- if or .Params.author $.Site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}} {{- end }} -{{- end }} +{{- end -}} From 4878383dd4370c682f974570718b08e6104fc9c3 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 31 Mar 2021 10:00:31 +0530 Subject: [PATCH 057/438] Add global keywords for home page original idea #311 --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e37953311e..3713b96d9f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,9 +11,13 @@ {{ if .IsHome }}{{ else }}{{ if .Title }}{{ .Title }} | {{ end }}{{ end }}{{ .Site.Title }} {{- /* Meta */}} +{{- if .IsHome }} +{{ with .Site.Params.keywords -}}{{ end }} +{{- else }} +{{- end }} From 55fe10e9d39850c955dcfdd1e1a708c378dc7705 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 31 Mar 2021 09:42:38 +0530 Subject: [PATCH 058/438] Use non-async internal template for Google Analytics v4 --- 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 3713b96d9f..45c11fd720 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -95,7 +95,7 @@ {{- /* Misc */}} {{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} -{{- template "_internal/google_analytics_async.html" . }} +{{- template "_internal/google_analytics.html" . }} {{- template "_internal/google_news.html" . }} {{- template "partials/templates/opengraph.html" . }} {{- template "partials/templates/twitter_cards.html" . }} From 23610de4a0f21c8302ef4066589dd0f6620bcd08 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 31 Mar 2021 09:45:33 +0530 Subject: [PATCH 059/438] Update min hugo version to 0.82.0 - for Google Analytics v4 support template --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++----- theme.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index a57c22d193..6c31a49efd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -11,7 +11,7 @@ assignees: '' ## READ BEFORE OPENING ISSUES -Please fill the template below +Please fill the template below - **DO NOT** ask for instructions. - Use Discussions section if you need help - See project wiki https://github.com/adityatelange/hugo-PaperMod/wiki @@ -25,12 +25,12 @@ Please fill the template below - Device/Os: [e.g. Android 10] - Type: [e.g. Desktop/Mobile] - - Browser and version [e.g. Chrome 86.0]: - - Hugo Version [ >=0.74 expected]: - - Theme Version [e.g. v4.0, master, or commit-id ]: + - Browser and version [e.g. Chrome 86.0]: + - Hugo Version [ >=0.82.0 expected]: + - Theme Version [e.g. v4.0, master, or commit-id ]: **Steps to reproduce the behavior:** - + + +**What does this PR change? What problem does it solve?** + + + + +**Was the change discussed in an issue or in the Discussions before?** + + + + +## PR Checklist + +- [ ] 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 unrelated scripts such as bash and python scripts. +- [ ] This change updates the overridden internal templates from HUGO's repository. From 10745dd53775a62fa80ad24f2b61c6c36bf9f1d6 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 24 Apr 2021 09:36:27 +0530 Subject: [PATCH 085/438] Add margin below figure - adds space below when using figure shortcode Fixes: #377 --- 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 b4307e2fdd..1d31b621c5 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -88,6 +88,7 @@ .post-content dl, .post-content ol, .post-content p, +.post-content figure, .post-content ul { margin-bottom: var(--content-gap) } @@ -429,4 +430,4 @@ h6:hover .anchor { [dir="rtl"] .paginav .next { text-align: left; -} \ No newline at end of file +} From 3a8df7888ee79f556c2fbd85a7c85eacd5e0f229 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 25 Apr 2021 05:30:00 +0530 Subject: [PATCH 086/438] Don't enable CodeCopyButtons by default Change in var name disableCodeCopy -> ShowCodeCopyButtons --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2c6511b8aa..aa4c056152 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -85,7 +85,7 @@ {{- end }} -{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not .Site.Params.disableCodeCopy)) }} +{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Site.Params.ShowCodeCopyButtons)) }} {{- end }} -{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Site.Params.ShowCodeCopyButtons)) }} +{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Param "ShowCodeCopyButtons")) }} {{- end }} -