From 11a52b70cdf41d8229c967c08ce47d8df539dd5a Mon Sep 17 00:00:00 2001 From: WfKe9vLwSvv7rN <96372288+WfKe9vLwSvv7rN@users.noreply.github.com> Date: Sun, 28 Aug 2022 02:48:20 -0700 Subject: [PATCH 1/9] Fix spacing around `rawhtml` shortcode (#1018) Removes line break from generated HTML output. This line break renders in browsers as an unwanted space. --- layouts/shortcodes/rawhtml.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/rawhtml.html b/layouts/shortcodes/rawhtml.html index 520ec178..9350c13f 100644 --- a/layouts/shortcodes/rawhtml.html +++ b/layouts/shortcodes/rawhtml.html @@ -1,2 +1,2 @@ -{{.Inner}} \ No newline at end of file +{{- .Inner -}} \ No newline at end of file From 2009151773925d51b0ad5cef661fcc9b609b5a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Wr=C3=B3bel?= Date: Sun, 28 Aug 2022 11:50:38 +0200 Subject: [PATCH 2/9] Add icons for AniList and osu! (#1022) * Add anilist logo * Add osu logo --- layouts/partials/svg.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 1e1f9dc7..60632653 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -14,6 +14,12 @@ +{{- else if (eq $icon_name "anilist") -}} + + + {{- else if (eq $icon_name "applemusic") -}} @@ -404,6 +410,15 @@ d="M128 256C198.7 256 256 198.7 256 128C256 57.3 198.7 0 128 0C57.3 0 0 57.3 0 128C0 198.7 57.3 256 128 256ZM70.9 186.2H86.3V127.5V79.0999H70.9V186.2ZM108.9 79.0999H150.5C190.1 79.0999 207.5 107.4 207.5 132.7C207.5 160.2 186 186.3 150.7 186.3H108.9V79.0999ZM124.3 172.4H148.8C183.7 172.4 191.7 145.9 191.7 132.7C191.7 111.2 178 93 148 93H124.3V172.4ZM78.6 66.8999C84.2 66.8999 88.7 62.2999 88.7 56.7999C88.7 51.2999 84.2 46.7 78.6 46.7C73 46.7 68.5 51.2 68.5 56.7999C68.5 62.2999 73 66.8999 78.6 66.8999Z" fill="currentColor" /> +{{- else if (eq $icon_name "osu!") -}} + + + + + + {{- else if (eq $icon_name "overcast") -}} Date: Sun, 28 Aug 2022 11:50:53 +0200 Subject: [PATCH 3/9] Updating pagination strings for de (#1024) --- i18n/de.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/de.yaml b/i18n/de.yaml index 47254190..f64aad97 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Vorherige Seite" + translation: "Vorherige" - id: next_page - translation: "Nächste Seite" + translation: "Nächste" - id: read_time translation: From 0cf3f7ae008c20c8b0d287ae508081b7d2310b1f Mon Sep 17 00:00:00 2001 From: Pinfel Date: Sun, 28 Aug 2022 05:55:59 -0400 Subject: [PATCH 4/9] Fix spotify icon svg (#997) super minor fix for spotify icon, basically no change in functionality typo in 'stoke' but it looks better without that way anyways so i just changed it to none --- layouts/partials/svg.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 60632653..cdc7b233 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -532,7 +532,7 @@ {{- else if (eq $icon_name "spotify") -}} - + From 2761a956978548cbe5316f8a5f4e7969c241232a Mon Sep 17 00:00:00 2001 From: Pinfel Date: Sun, 28 Aug 2022 05:56:51 -0400 Subject: [PATCH 5/9] add sketchfab icon (#998) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index cdc7b233..49f5389f 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -511,6 +511,10 @@ +{{- else if (eq $icon_name "sketchfab") -}} + + + {{- else if (eq $icon_name "slack") -}} From 275d0e9be7a4d1b91c2105b5a7e836bf4f7f0a4c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 28 Aug 2022 15:40:40 +0530 Subject: [PATCH 6/9] Update bug report template Add Repo/Source where this issue can be reproduced --- .github/ISSUE_TEMPLATE/bug_report.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 109b1dfd..3e6cf7e0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -40,6 +40,9 @@ Please fill the template below **Expected behavior**: +**Repo/Source where this issue can be reproduced**: + + **Screenshots** From 1f0f294c85a2351099a69f633adf922a7642aaad Mon Sep 17 00:00:00 2001 From: bentonw414 <38533157+bentonw414@users.noreply.github.com> Date: Fri, 2 Sep 2022 12:02:32 -0400 Subject: [PATCH 7/9] Use Nullish Coalescing Operator with Fastsearch (#1033) --- assets/js/fastsearch.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/assets/js/fastsearch.js b/assets/js/fastsearch.js index 02d1396a..06ebcfba 100644 --- a/assets/js/fastsearch.js +++ b/assets/js/fastsearch.js @@ -28,17 +28,17 @@ window.onload = function () { }; if (params.fuseOpts) { options = { - isCaseSensitive: params.fuseOpts.iscasesensitive ? params.fuseOpts.iscasesensitive : false, - includeScore: params.fuseOpts.includescore ? params.fuseOpts.includescore : false, - includeMatches: params.fuseOpts.includematches ? params.fuseOpts.includematches : false, - minMatchCharLength: params.fuseOpts.minmatchcharlength ? params.fuseOpts.minmatchcharlength : 1, - shouldSort: params.fuseOpts.shouldsort ? params.fuseOpts.shouldsort : true, - findAllMatches: params.fuseOpts.findallmatches ? params.fuseOpts.findallmatches : false, - keys: params.fuseOpts.keys ? params.fuseOpts.keys : ['title', 'permalink', 'summary', 'content'], - location: params.fuseOpts.location ? params.fuseOpts.location : 0, - threshold: params.fuseOpts.threshold ? params.fuseOpts.threshold : 0.4, - distance: params.fuseOpts.distance ? params.fuseOpts.distance : 100, - ignoreLocation: params.fuseOpts.ignorelocation ? params.fuseOpts.ignorelocation : true + isCaseSensitive: params.fuseOpts.iscasesensitive ?? false, + includeScore: params.fuseOpts.includescore ?? false, + includeMatches: params.fuseOpts.includematches ?? false, + minMatchCharLength: params.fuseOpts.minmatchcharlength ?? 1, + shouldSort: params.fuseOpts.shouldsort ?? true, + findAllMatches: params.fuseOpts.findallmatches ?? false, + keys: params.fuseOpts.keys ?? ['title', 'permalink', 'summary', 'content'], + location: params.fuseOpts.location ?? 0, + threshold: params.fuseOpts.threshold ?? 0.4, + distance: params.fuseOpts.distance ?? 100, + ignoreLocation: params.fuseOpts.ignorelocation ?? true } } fuse = new Fuse(data, options); // build the index from the json file From ddfea82cc75c93074194490df3805d28f7852248 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 3 Sep 2022 16:06:39 +0530 Subject: [PATCH 8/9] Fix error with profileMode imageUrl on Windows devices when imageUrl was set with external link resources.Get throws an error Ref: https://github.com/gohugoio/hugo/commit/22ef5da20d1685dfe6aff3bd9364c9b1f1d0d8f8 fixes: #1019 --- layouts/partials/index_profile.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index c2ff3e69..d9ddbda5 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -2,7 +2,10 @@ {{- with site.Params.profileMode }}
{{- if .imageUrl -}} - {{- $img := resources.Get .imageUrl }} + {{- $img := "" }} + {{- if not (urls.Parse .imageUrl).IsAbs }} + {{- $img = resources.Get .imageUrl }} + {{- end }} {{- if $img }} {{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}} {{- if hugo.IsExtended -}} From 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cddd Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 20 Jun 2021 12:30:41 -0700 Subject: [PATCH 9/9] [PATCH] Fix date format in schema and opengraph templates cherry-picked from https://github.com/gohugoio/hugo/commit/34e4742f0caab0d3eb9efd00fce4157d112617b5 --- layouts/partials/templates/opengraph.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index 13e7b2bd..9e8df143 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -27,8 +27,8 @@ {{- if .IsPage }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} -{{ with .PublishDate }}{{ end }} -{{ with .Lastmod }}{{ end }} +{{ with .PublishDate }}{{ end }} +{{ with .Lastmod }}{{ end }} {{- end -}} {{- with .Params.audio }}{{ end }}