From 34614f3daee4c78a3db100244cd76fec98e6c32f Mon Sep 17 00:00:00 2001 From: SavingNinja <108244591+SavingNinja@users.noreply.github.com> Date: Sat, 2 Jul 2022 11:13:32 -0400 Subject: [PATCH 01/76] Updates go.mod to match fork Adding go module was broken: > module declares its path as: github.com/adityatelange/hugo-PaperMod but was required as: github.com/reorx/hugo-PaperModX This should fix it. --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index af95855690..7b4f6d2602 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/adityatelange/hugo-PaperMod +module github.com/reorx/hugo-PaperModX go 1.12 From 5712437816a3ce223dcf661db2fb28352f3bd8c3 Mon Sep 17 00:00:00 2001 From: Triple-Z Date: Wed, 10 Aug 2022 19:50:38 +0800 Subject: [PATCH 02/76] feat: add share buttons back :tada: Signed-off-by: Triple-Z --- layouts/_default/single.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c71f66dfcb..d24037f339 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -40,6 +40,10 @@

{{- partial "social_links.html" . }} {{- end }} + {{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true) ) }} + {{- partial "share_icons.html" . }} + {{- end }} + {{- if (.Param "ShowPostNavLinks") }} {{- partial "post_nav_links.html" . }} {{- end }} From 313530cf5447141d5703e47db145e94072f21554 Mon Sep 17 00:00:00 2001 From: Huo Date: Mon, 5 Sep 2022 23:20:58 +0800 Subject: [PATCH 03/76] make the background color of selected text consistent with the overall color vibe --- assets/css/core/theme-vars.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/css/core/theme-vars.css b/assets/css/core/theme-vars.css index 2535b999f5..73f0f08807 100644 --- a/assets/css/core/theme-vars.css +++ b/assets/css/core/theme-vars.css @@ -27,6 +27,18 @@ --line-yellow: url("data:image/svg+xml;charset=utf-8,%3Csvg preserveAspectRatio='none' width='120' height='6' viewBox='0 0 120 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M119 0.8C60 4 50-0.5 1 1.5' stroke='%23fc0' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); } +::selection { + background: var(--link-background-color); +} + +::-moz-selection { + background: var(--link-background-color); +} + +::-webkit-selection { + background: var(--link-background-color); +} + .dark { --theme: rgb(29, 30, 32); --entry: rgb(46, 46, 51); From f00847960795331f3432dc7fdb61d3beb066bf9c Mon Sep 17 00:00:00 2001 From: Blanchon Date: Mon, 12 Sep 2022 15:53:14 +0200 Subject: [PATCH 04/76] add giscus --- layouts/partials/comments.html | 6 +++ layouts/partials/giscus.html | 82 ++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 layouts/partials/giscus.html diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index c7fae9d917..287c0c9dab 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -24,4 +24,10 @@ {{- partial "disqus.html" (dict "page" $page "ctx" .) }} {{- end -}} {{- end -}} + + {{- if $pageCommentSystems.giscus -}} + {{- with .giscus -}} + {{- partial "giscus.html" (dict "page" $page "ctx" .) }} + {{- end -}} + {{- end -}} {{- end -}} diff --git a/layouts/partials/giscus.html b/layouts/partials/giscus.html new file mode 100644 index 0000000000..f7be66ac4f --- /dev/null +++ b/layouts/partials/giscus.html @@ -0,0 +1,82 @@ +
+
+
+ + \ No newline at end of file From 48a72580c7990389ab3b5cf81e4bd8db510d8889 Mon Sep 17 00:00:00 2001 From: Blanchon Date: Mon, 12 Sep 2022 23:10:36 +0200 Subject: [PATCH 05/76] Add extra space after article date --- layouts/partials/post_meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 253617db72..a754c1923f 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -2,7 +2,7 @@ {{- if not .Date.IsZero -}} - {{ .Date | time.Format (default "January 2, 2006" site.Params.DateFormat) }} +  {{ .Date | time.Format (default "January 2, 2006" site.Params.DateFormat) }} {{- end }} {{- if .Params.tags -}} From ea81099175c824eba2819fcd53a7759f9bf0041c Mon Sep 17 00:00:00 2001 From: BedirT Date: Thu, 22 Sep 2022 13:35:46 -0600 Subject: [PATCH 06/76] theme vars fix --- assets/css/core/theme-vars.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/css/core/theme-vars.css b/assets/css/core/theme-vars.css index 5b2c7f8dc8..e5363cbff2 100644 --- a/assets/css/core/theme-vars.css +++ b/assets/css/core/theme-vars.css @@ -55,6 +55,10 @@ --link-underline-shadow: 0 1px 0 var(--link-color); --link-hover-underline-color: var(--link-hover-color); --link-hover-underline-shadow: 0 2px 0 var(--link-hover-underline-color); + + /* for type pages theming */ + --signature: var(--primary); + --signature-bg: var(--secondary); } .list-page { From 1965937922790304746224d8a86cd9d4215cf6d6 Mon Sep 17 00:00:00 2001 From: Sebastien <102696928+SebMtn@users.noreply.github.com> Date: Tue, 19 Apr 2022 15:16:11 +0100 Subject: [PATCH 07/76] :Set `
`'s border to 0 (#870) * Updated post-single.css to set hr's border to 0 * cleanup Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- assets/css/common/post-single.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 67b44eb3de..80bdff339d 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -295,8 +295,7 @@ h6:hover .anchor { margin: 30px 0; height: 2px; background: var(--tertiary-bg); - border-top: 0; - border-bottom: 0; + border: 0 } .post-content iframe { From 2e9ee9264c7a0610a43451c8e77ac8846f62286a Mon Sep 17 00:00:00 2001 From: Nicola Biancolini Date: Tue, 19 Apr 2022 16:52:20 +0200 Subject: [PATCH 08/76] Fix malformed html structure of the translation list on post. (#886) Moves "Translations" word out of `ul` --- layouts/partials/translation_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/translation_list.html b/layouts/partials/translation_list.html index 9d28e15757..0028251949 100644 --- a/layouts/partials/translation_list.html +++ b/layouts/partials/translation_list.html @@ -2,8 +2,8 @@ {{- if (ne .Layout "search") }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}} {{- end }} +{{- i18n "translations" | default "Translations" }}:
    - {{- i18n "translations" | default "Translations" }}: {{- range .Translations }}
  • From 22a969360303c49734c1819993605b86ebfbfa13 Mon Sep 17 00:00:00 2001 From: Matt Burns Date: Thu, 21 Apr 2022 17:45:41 +0100 Subject: [PATCH 09/76] Added Strava icon svg (#890) Thanks to https://www.iconfinder.com/icons/4691462/strava_icon for the icon Co-authored-by: Matt Burns --- data/svg.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/svg.toml b/data/svg.toml index 95c7687f7e..caf381fe95 100644 --- a/data/svg.toml +++ b/data/svg.toml @@ -588,6 +588,12 @@ steam = ''' d="M11.979 0C5.678 0 .511 4.86.022 11.037l6.432 2.658c.545-.371 1.203-.59 1.912-.59.063 0 .125.004.188.006l2.861-4.142V8.91c0-2.495 2.028-4.524 4.524-4.524 2.494 0 4.524 2.031 4.524 4.527s-2.03 4.525-4.524 4.525h-.105l-4.076 2.911c0 .052.004.105.004.159 0 1.875-1.515 3.396-3.39 3.396-1.635 0-3.016-1.173-3.331-2.727L.436 15.27C1.862 20.307 6.486 24 11.979 24c6.627 0 11.999-5.373 11.999-12S18.605 0 11.979 0zM7.54 18.21l-1.473-.61c.262.543.714.999 1.314 1.25 1.297.539 2.793-.076 3.332-1.375.263-.63.264-1.319.005-1.949s-.75-1.121-1.377-1.383c-.624-.26-1.29-.249-1.878-.03l1.523.63c.956.4 1.409 1.5 1.009 2.455-.397.957-1.497 1.41-2.454 1.012H7.54zm11.415-9.303c0-1.662-1.353-3.015-3.015-3.015-1.665 0-3.015 1.353-3.015 3.015 0 1.665 1.35 3.015 3.015 3.015 1.663 0 3.015-1.35 3.015-3.015zm-5.273-.005c0-1.252 1.013-2.266 2.265-2.266 1.249 0 2.266 1.014 2.266 2.266 0 1.251-1.017 2.265-2.266 2.265-1.253 0-2.265-1.014-2.265-2.265z" /> ''' +strava = ''' + + + +''' telegram = ''' From 20ac1723fc452cecb9d2bef2cd5a2da01cca401e Mon Sep 17 00:00:00 2001 From: OxNinja <57400445+OxNinja@users.noreply.github.com> Date: Thu, 21 Apr 2022 18:48:14 +0200 Subject: [PATCH 10/76] Update French translation fr.yaml (#888) Updated translations to use a more correct french (such as good use of capital letter or spacing with special characters) --- i18n/fr.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 46ad398b68..b074c1075d 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Page Précédente" + translation: "Page précédente" - id: next_page - translation: "Page Suivante" + translation: "Page suivante" - id: read_time translation: @@ -15,7 +15,7 @@ other: "{{ .Count }} mots" - id: toc - translation: "Table des Matières" + translation: "Table des matières" - id: translations translation: "Traductions" @@ -27,7 +27,7 @@ translation: "Modifier" - id: code_copy - translation: "copier" + translation: "Copier" - id: code_copied - translation: "copié!" + translation: "Copié !" From ecba4979ffbee374877c38b301325ddc7b45d575 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 23 Apr 2022 08:27:05 +0530 Subject: [PATCH 11/76] Fix line nums in code block alignment in rtl languages --- assets/css/common/post-single.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 80bdff339d..2836d22431 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -198,6 +198,7 @@ h6:hover .anchor { .post-content .highlight:not(table) { margin: var(--content-gap) auto; border-radius: var(--radius); + direction: ltr; } .post-content li > .highlight { From 77890759f14d7d164d8634b4a05ff2605a8a971a Mon Sep 17 00:00:00 2001 From: Moon Sungjoon Date: Sat, 30 Apr 2022 02:01:25 +0900 Subject: [PATCH 12/76] i18n: Update Korean translation ko.yaml (#894) --- i18n/ko.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/i18n/ko.yaml b/i18n/ko.yaml index db0bcc75a1..777dd938a4 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -9,6 +9,11 @@ one : "1 분" other: "{{ .Count }} 분" +- id: words + translation: + one : "단어" + other: "{{ .Count }} 단어" + - id: toc translation: "목차" @@ -16,10 +21,13 @@ translation: "번역" - id: home - translation: "홈페이지" + translation: "홈" + +- id: edit_post + translation: "편집" - id: code_copy translation: "복사" - id: code_copied - translation: "복사완료!" + translation: "복사 완료!" From a14d3918a26b52eebfddae4003812141e5f0a804 Mon Sep 17 00:00:00 2001 From: Haziq Rohaizan <49823671+mhrk04@users.noreply.github.com> Date: Sat, 30 Apr 2022 01:02:02 +0800 Subject: [PATCH 13/76] Add translations for Malay(ms) (#899) --- i18n/ms.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 i18n/ms.yaml diff --git a/i18n/ms.yaml b/i18n/ms.yaml new file mode 100644 index 0000000000..d8a9effdfd --- /dev/null +++ b/i18n/ms.yaml @@ -0,0 +1,28 @@ +- id: prev_page + translation: "Halaman Sebelumnya" + +- id: next_page + translation: "Halaman Seterusnya" + +- id: read_time + translation: + one: "1 minit" + other: "{{ .Count }} minit" + +- id: toc + translation: "Isi Kandungan" + +- id: translations + translation: "Terjemahan" + +- id: home + translation: "Home" + +- id: edit_post + translation: "Sunting" + +- id: code_copy + translation: "Salin" + +- id: code_copied + translation: "Disalin!" From b2e80fdf72654787b47e6cbb988544daac6f4253 Mon Sep 17 00:00:00 2001 From: Richard Slater <630786+RichardSlater@users.noreply.github.com> Date: Sat, 7 May 2022 15:08:26 +0100 Subject: [PATCH 14/76] Add TikTok Social Icon (#905) --- data/svg.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/svg.toml b/data/svg.toml index caf381fe95..304269883e 100644 --- a/data/svg.toml +++ b/data/svg.toml @@ -600,10 +600,19 @@ telegram = ''' +<<<<<<< HEAD:data/svg.toml ''' telegram-simple = ''' Telegram ''' +tiktok = ''' + + + +''' twitch = ''' From 960e6d89bfe4df5354d1ff9c3ece9fc15cf58964 Mon Sep 17 00:00:00 2001 From: Richard Slater <630786+RichardSlater@users.noreply.github.com> Date: Sun, 8 May 2022 03:59:44 +0100 Subject: [PATCH 15/76] Add GuruShots (https://gurushots.com/) Social Icon (#906) --- data/svg.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/data/svg.toml b/data/svg.toml index 304269883e..e10e6e98c7 100644 --- a/data/svg.toml +++ b/data/svg.toml @@ -267,6 +267,22 @@ googlescholar = ''' +<<<<<<< HEAD:data/svg.toml +''' +gurushots = ''' + + + + + + + + + + + + ''' hackerone = ''' From 09abb42075765223386ffdf847ff6fb21d75ffc8 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 14 May 2022 10:29:44 +0530 Subject: [PATCH 16/76] Updating pagination strings for en: "Next Page" -> "Next" & "Prev Page" -> "Prev" For #914 --- i18n/en.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 90da829817..5fa40e5638 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Prev Page" + translation: "Prev" - id: next_page - translation: "Next Page" + translation: "Next" - id: read_time translation: From 96a80fd66342154d30e9476dca2627cd0ae30861 Mon Sep 17 00:00:00 2001 From: Dejavu Moe Date: Sat, 14 May 2022 21:37:04 +0800 Subject: [PATCH 17/76] Update translation of zh-tw (#908) --- i18n/zh-tw.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/zh-tw.yaml b/i18n/zh-tw.yaml index 7b9d9db3ea..48b84d26c5 100644 --- a/i18n/zh-tw.yaml +++ b/i18n/zh-tw.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "上一篇" + translation: "上一頁" - id: next_page - translation: "下一篇" + translation: "下一頁" - id: read_time translation: From 8809496d105bdc38845d75d920f79c247b7868e8 Mon Sep 17 00:00:00 2001 From: Ivan Aprea <54630721+IvanAprea@users.noreply.github.com> Date: Tue, 17 May 2022 12:29:07 -0300 Subject: [PATCH 18/76] chore: change i18n next prev spanish language (#917) --- i18n/es.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/es.yaml b/i18n/es.yaml index 163bfc41ca..52a559ce08 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Página anterior" + translation: "Anterior" - id: next_page - translation: "Página siguiente" + translation: "Siguiente" - id: read_time translation: From cc37b8572b8d93a656a0c11925dc7a59a2e3e69e Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 17 May 2022 22:00:09 +0530 Subject: [PATCH 19/76] Don't auto titlelify button text #842 --- layouts/partials/index_profile.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index d48acd7a34..8f2257cb16 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -34,8 +34,8 @@

    {{ .title | default site.Title | markdownify }}

    {{- with .buttons }}
    From 9f327a54b8a00424effb24c9dd15d3c54a26cab3 Mon Sep 17 00:00:00 2001 From: Martin Pittermann Date: Sun, 22 May 2022 07:43:50 +0200 Subject: [PATCH 20/76] Add robotsNoIndex parameter (#900) - adds the ability to use the noindex and nofollow parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines. - Usage: In post front-matter add, --- robotsNoIndex: true --- --- 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 6f36fbe775..2b5992bb24 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,7 @@ -{{- if hugo.IsProduction | or (eq site.Params.env "production") }} +{{- if hugo.IsProduction | or (eq site.Params.env "production") | and (ne .Params.robotsNoIndex true) }} {{- else }} From a2a80228e5c9774619d20a25d7ba9533acdc47a2 Mon Sep 17 00:00:00 2001 From: Je Sian Keith Herman <68434444+jskherman@users.noreply.github.com> Date: Sat, 28 May 2022 00:52:31 +0800 Subject: [PATCH 21/76] Add ORCID Social Icon (#928) --- data/svg.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/svg.toml b/data/svg.toml index e10e6e98c7..4254519d48 100644 --- a/data/svg.toml +++ b/data/svg.toml @@ -440,6 +440,14 @@ nuget = ''' +<<<<<<< HEAD:data/svg.toml +''' +orcid = ''' + + + ''' monero = ''' From 6cc1e7632f1cae618f90ff33a3043bb5ae02481c Mon Sep 17 00:00:00 2001 From: Keno Hassler <40292329+kenohassler@users.noreply.github.com> Date: Fri, 27 May 2022 19:19:32 +0200 Subject: [PATCH 22/76] Output valid HTML (#673) --- layouts/partials/header.html | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f1435b8211..71caff6de0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -98,7 +98,7 @@ {{- $label_text -}} {{- end }} - +
    {{- if (not site.Params.disableThemeToggle) }} {{- end }} - + + {{- $lang := .Lang}} + {{- $separator := or $label_text (not site.Params.disableThemeToggle)}} + {{- with site.Home.AllTranslations }} + + {{- end }} +
    + {{- $currentPage := . }}