From 07759b794f380c589f1da481c9df245cff8344b2 Mon Sep 17 00:00:00 2001 From: Maciej Bromirski <50320623+Nevalicjus@users.noreply.github.com> Date: Sun, 4 Jun 2023 14:59:28 +0200 Subject: [PATCH 01/19] updated pl.yaml for #914 (#1229) --- i18n/pl.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/pl.yaml b/i18n/pl.yaml index edc0ce8..81b0e77 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Poprzednia strona" + translation: "Poprzednia" - id: next_page - translation: "Następna strona" + translation: "Następna" - id: read_time translation: From 4a924cef54081b61530a30bd69d442ae95f16561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Vincent?= <28714795+leovct@users.noreply.github.com> Date: Sun, 4 Jun 2023 14:59:55 +0200 Subject: [PATCH 02/19] chore: update french translations (#1222) Related to #914 --- i18n/fr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/fr.yaml b/i18n/fr.yaml index b074c10..e48d8e9 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Page précédente" + translation: "Précédent" - id: next_page - translation: "Page suivante" + translation: "Suivant" - id: read_time translation: From 8ac719fb568b67225af2962cbce898c20c7c6f46 Mon Sep 17 00:00:00 2001 From: Geeqla <1140778+geeqla@users.noreply.github.com> Date: Sun, 9 Jul 2023 07:38:57 +0200 Subject: [PATCH 03/19] Add social icon for Threads (#1256) --- layouts/partials/svg.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index e224640..2877b12 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -589,13 +589,16 @@ - {{- else if (eq $icon_name "telegram") -}} +{{- else if (eq $icon_name "threads") -}} + + + {{- else if (eq $icon_name "threema") -}} @@ -613,7 +616,7 @@ {{- else if (eq $icon_name "tumblr") -}} - + {{- else if (eq $icon_name "twitch") -}} Date: Sun, 9 Jul 2023 01:40:07 -0400 Subject: [PATCH 04/19] Add social icon for Tidal (#1259) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 2877b12..35eb30f 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -603,6 +603,10 @@ +{{- else if (eq $icon_name "tidal") -}} + + + {{- else if (eq $icon_name "tiktok") -}} From 804a8682f3f060e17a1a6f101704af2990834712 Mon Sep 17 00:00:00 2001 From: Tarak Parab <115934474+tarakparab@users.noreply.github.com> Date: Sun, 9 Jul 2023 11:10:43 +0530 Subject: [PATCH 05/19] Icon for Google Play Store (#1242) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 35eb30f..79980b1 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -236,6 +236,10 @@ +{{- else if (eq $icon_name "googleplaystore") -}} + + + {{- else if (eq $icon_name "googlepodcasts") -}} Date: Sat, 15 Jul 2023 13:22:30 +0700 Subject: [PATCH 06/19] Create translations for Thai (th.yaml) (#1252) --- i18n/th.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 i18n/th.yaml diff --git a/i18n/th.yaml b/i18n/th.yaml new file mode 100644 index 0000000..d8036ae --- /dev/null +++ b/i18n/th.yaml @@ -0,0 +1,33 @@ +- id: prev_page + translation: "ก่อนหน้า" + +- id: next_page + translation: "ถัดไป" + +- id: read_time + translation: + one : "1 นาที" + other: "{{ .Count }} นาที" + +- id: words + translation: + one : "คำ" + other: "{{ .Count }} คำ" + +- id: toc + translation: "สารบัญ" + +- id: translations + translation: "การแปล" + +- id: home + translation: "หน้าหลัก" + +- id: edit_post + translation: "แก้ไข" + +- id: code_copy + translation: "คัดลอก" + +- id: code_copied + translation: "คัดลอกแล้ว!" From 74d288ff944e21238982282a1dc00b3af445a92c Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 23 Jul 2023 10:30:36 +0200 Subject: [PATCH 07/19] Bump GitHub workflow actions to latest versions (#1267) ref: https://github.com/actions/starter-workflows/blob/main/pages/hugo.yml --- .github/workflows/gh-pages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4f59e30..c7b8351 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -53,7 +53,7 @@ jobs: ref: exampleSite - name: Setup Pages id: pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v3 - name: Get Theme run: git submodule update --init --recursive - name: Update theme to Latest commit @@ -64,7 +64,7 @@ jobs: --buildDrafts --gc --verbose \ --baseURL ${{ steps.pages.outputs.base_url }} - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ./public # Deployment job @@ -77,4 +77,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 From 61bf918a0d4a3dbab18bc23033628f0a01ed0e39 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 23 Jul 2023 10:32:18 +0200 Subject: [PATCH 08/19] socialIcons, fix: apply safeURL to make all URI schemes work (#1266) --- layouts/partials/social_icons.html | 2 +- layouts/partials/templates/schema_json.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index 3f8d6a3..876b77c 100644 --- a/layouts/partials/social_icons.html +++ b/layouts/partials/social_icons.html @@ -1,6 +1,6 @@
{{- range . }} - + {{ partial "svg.html" . }} {{- end }} diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index 74abbb5..435cba5 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -11,7 +11,7 @@ {{- if site.Params.schema.sameAs }} {{ range $i, $e := site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }} {{- else}} - {{ range $i, $e := site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " }}{{ end }} + {{ range $i, $e := site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " | safeURL }}{{ end }} {{- end}} ] } From faa73a4ee88f0b973e75d3589370db3a2e491130 Mon Sep 17 00:00:00 2001 From: Markus Dick <47363631+MarkusDick@users.noreply.github.com> Date: Sun, 23 Jul 2023 10:36:25 +0200 Subject: [PATCH 09/19] add printables and thingiverse logo (#1216) source of the logos is simpleicons.org --- layouts/partials/svg.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 79980b1..48b83ed 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -483,6 +483,10 @@ +{{- else if (eq $icon_name "printables") -}} + + + {{- else if (eq $icon_name "qq") -}} @@ -599,6 +603,10 @@ +{{- else if (eq $icon_name "thingiverse") -}} + + + {{- else if (eq $icon_name "threads") -}} From 6f29d35d73670edeb858f92f1af4f404957c6bb6 Mon Sep 17 00:00:00 2001 From: Morc Date: Sun, 23 Jul 2023 10:44:45 +0200 Subject: [PATCH 10/19] Add svg for root-me.org (#1174) --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 48b83ed..2f85399 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -505,6 +505,12 @@ +{{- else if (eq $icon_name "rootme") -}} + + + + {{- else if (eq $icon_name "rss") -}} From 1521cc77a27e5c2fc7026707450a165675dc9025 Mon Sep 17 00:00:00 2001 From: Rook1e Date: Sat, 5 Aug 2023 14:22:30 +0800 Subject: [PATCH 11/19] feat: allow hiding author in post_meta (#1250) * feat: allow hiding author in post_meta For a person's site, in most cases the author is the person, and displaying it on every post and list may be redundant. Setting the `params.author` in the configuration to empty will achieve the hidden effect, but it will also empty the value of ``. So add hideAuthor --- layouts/partials/post_meta.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 15b8b1b..8bc0e50 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -12,9 +12,11 @@ {{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }} {{- end }} +{{- if not (.Param "hideAuthor") -}} {{- with (partial "author.html" .) }} {{- $scratch.Add "meta" (slice .) }} {{- end }} +{{- end }} {{- with ($scratch.Get "meta") }} {{- delimit . " · " -}} From 4230109ff7428dd0442a9b23f5746bce52f269ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berk=20Elyesa=20Y=C4=B1ld=C4=B1r=C4=B1m?= Date: Sat, 5 Aug 2023 09:31:43 +0300 Subject: [PATCH 12/19] Add svg for pixelfed (#87) (#1272) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 2f85399..c7de9e7 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -487,6 +487,10 @@ +{{- else if (eq $icon_name "pixelfed") -}} + + + {{- else if (eq $icon_name "qq") -}} From 69cec7a0bafad873794af7f8006d48b5581e07a0 Mon Sep 17 00:00:00 2001 From: Bob Zheng Date: Sat, 5 Aug 2023 14:42:02 +0800 Subject: [PATCH 13/19] feat: add wechat icon (#1149) Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index c7de9e7..e54d4e1 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -671,6 +671,12 @@ +{{- else if (eq $icon_name "wechat") -}} + + + + {{- else if (eq $icon_name "xda") -}} Date: Wed, 9 Aug 2023 21:19:17 +0530 Subject: [PATCH 14/19] Add news.ycombinator share button --- layouts/partials/share_icons.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index 59ed050..4281c94 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -68,4 +68,14 @@ {{- end }} -
\ No newline at end of file + {{- if (cond ($custom) (in $ShareButtons "ycombinator") (true)) }} + + + + + + {{- end }} + From f7bd1ec07cdbfe9951fdec4e0c03e39ef7bd40d1 Mon Sep 17 00:00:00 2001 From: Navendu Pottekkat Date: Sat, 12 Aug 2023 13:17:24 +0530 Subject: [PATCH 15/19] feat: add configurable limit to search results (#1281) * feat: add configurable limit to search results Signed-off-by: Navendu Pottekkat * Handle case where params.fuseOpts is not defined resulting into `Cannot read properties of null (reading 'limit')` Utilizes search options by fuse https://www.fusejs.io/api/methods.html#search The options: limit (type: number): Denotes the max number of returned search results. --------- Signed-off-by: Navendu Pottekkat Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- assets/js/fastsearch.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/js/fastsearch.js b/assets/js/fastsearch.js index 06ebcfb..9484e75 100644 --- a/assets/js/fastsearch.js +++ b/assets/js/fastsearch.js @@ -77,7 +77,12 @@ sInput.onkeyup = function (e) { // run a search query (for "term") every time a letter is typed // in the search box if (fuse) { - const results = fuse.search(this.value.trim()); // the actual query being run using fuse.js + let results; + if (params.fuseOpts) { + results = fuse.search(this.value.trim(), {limit: params.fuseOpts.limit}); // the actual query being run using fuse.js along with options + } else { + results = fuse.search(this.value.trim()); // the actual query being run using fuse.js + } if (results.length !== 0) { // build our html if result exists let resultSet = ''; // our results bucket From eab731707a1adad3a531c2320172bab8954a3600 Mon Sep 17 00:00:00 2001 From: Hiroshi Shimoju Date: Sat, 12 Aug 2023 16:56:08 +0900 Subject: [PATCH 16/19] fix: Prevent adjustments of font size after orientation changes in iOS (#1285) The font size in the code block may be larger. As shown below, the Reset CSS specifies `text-size-adjust: 100%`. https://github.com/necolas/normalize.css/blob/fc091cce1534909334c1911709a39c22d406977b/normalize.css#L13 https://github.com/csstools/sanitize.css/blob/092d0d85922bfa72d28e9e8d25d80a5437c8df44/sanitize.css#L43 --- assets/css/core/reset.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index f509cf6..7393d57 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -7,6 +7,8 @@ html { -webkit-tap-highlight-color: transparent; overflow-y: scroll; + -webkit-text-size-adjust: 100%; + text-size-adjust: 100%; } a, From 9d4a9e825a109feea060eb7522763ca9a37375b8 Mon Sep 17 00:00:00 2001 From: black jack <576843117@qq.com> Date: Sat, 12 Aug 2023 20:22:00 +0800 Subject: [PATCH 17/19] add social icon of leetcode (#1286) * add social icon of leetcode from https://simpleicons.org/ * alphabetize --------- Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index e54d4e1..2758227 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -340,6 +340,12 @@ +{{- else if (eq $icon_name "leetcode") -}} + + + {{- else if (eq $icon_name "letterboxd") -}} From 3a064f5c76f6006e95a1b46c209862086ba55008 Mon Sep 17 00:00:00 2001 From: COxDE <63153334+coxde@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:48:14 +0100 Subject: [PATCH 18/19] Add the social icon for Firefish (#1294) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 2758227..068e4dc 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -195,6 +195,10 @@ stroke-linecap="round" stroke-linejoin="round"> +{{- else if (eq $icon_name "firefish") -}} + + + {{- else if (eq $icon_name "flickr") -}} Date: Sat, 26 Aug 2023 15:48:57 +0100 Subject: [PATCH 19/19] Add social icon for Pleroma (#1293) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 068e4dc..37441e6 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -501,6 +501,10 @@ +{{- else if (eq $icon_name "pleroma") -}} + + + {{- else if (eq $icon_name "qq") -}}