From b24b2de5e16ca3baea69d31c1a6dc72e893db838 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 9 Nov 2023 22:52:44 +0100 Subject: sync theme --- themes/PaperMod/README.md | 2 +- themes/PaperMod/i18n/no.yaml | 33 +++++++++++++++++++++++ themes/PaperMod/i18n/sw.yaml | 33 +++++++++++++++++++++++ themes/PaperMod/i18n/vi.yaml | 10 ++++++- themes/PaperMod/layouts/_default/baseof.html | 4 +++ themes/PaperMod/layouts/partials/post_meta.html | 2 +- themes/PaperMod/layouts/partials/share_icons.html | 8 +++--- themes/PaperMod/layouts/partials/svg.html | 20 ++++++++++++++ 8 files changed, 105 insertions(+), 7 deletions(-) create mode 100644 themes/PaperMod/i18n/no.yaml create mode 100644 themes/PaperMod/i18n/sw.yaml (limited to 'themes') diff --git a/themes/PaperMod/README.md b/themes/PaperMod/README.md index 00dec5a..7a80cca 100644 --- a/themes/PaperMod/README.md +++ b/themes/PaperMod/README.md @@ -3,7 +3,7 @@

☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive


-> Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper). +> Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3). > The goal of this project is to add more features and customization to the og theme. **Documentation** can be found here: [**📚 Wiki**](https://github.com/adityatelange/hugo-PaperMod/wiki) diff --git a/themes/PaperMod/i18n/no.yaml b/themes/PaperMod/i18n/no.yaml new file mode 100644 index 0000000..2400348 --- /dev/null +++ b/themes/PaperMod/i18n/no.yaml @@ -0,0 +1,33 @@ +- id: prev_page + translation: "Forrige Side" + +- id: next_page + translation: "Neste Side" + +- id: read_time + translation: + one: "1 min" + other: "{{ .Count }} min" + +- id: words + translation: + one: "ord" + other: "{{ .Count }} ord" + +- id: toc + translation: "Innholdsfortegnelse" + +- id: translations + translation: "Oversettelser" + +- id: home + translation: "Hjem" + +- id: edit_post + translation: "Rediger" + +- id: code_copy + translation: "Kopier" + +- id: code_copied + translation: "Kopiert!" diff --git a/themes/PaperMod/i18n/sw.yaml b/themes/PaperMod/i18n/sw.yaml new file mode 100644 index 0000000..5fceb1a --- /dev/null +++ b/themes/PaperMod/i18n/sw.yaml @@ -0,0 +1,33 @@ +- id: prev_page + translation: "Uliopita" + +- id: next_page + translation: "Ujao" + +- id: read_time + translation: + one : "dakika 1" + other: "dakika {{ .Count }}" + +- id: words + translation: + one : "neno" + other: "maneno {{ .Count }}" + +- id: toc + translation: "Jedwali la Yaliyomo" + +- id: translations + translation: "Tafsiri" + +- id: home + translation: "Mwanzo" + +- id: edit_post + translation: "Hariri" + +- id: code_copy + translation: "nakili" + +- id: code_copied + translation: "nakiliwa!" diff --git a/themes/PaperMod/i18n/vi.yaml b/themes/PaperMod/i18n/vi.yaml index a3832ed..2eb05d0 100644 --- a/themes/PaperMod/i18n/vi.yaml +++ b/themes/PaperMod/i18n/vi.yaml @@ -6,9 +6,14 @@ - id: read_time translation: - one : "1 phút" + one: "1 phút" other: "{{ .Count }} phút" +- id: words + translation: + one: "từ" + other: "{{ .Count }} từ" + - id: toc translation: "Mục lục" @@ -18,6 +23,9 @@ - id: home translation: "Trang chủ" +- id: edit_post + translation: "Chỉnh sửa" + - id: code_copy translation: "Sao chép" diff --git a/themes/PaperMod/layouts/_default/baseof.html b/themes/PaperMod/layouts/_default/baseof.html index 3d13f07..d2de5ee 100644 --- a/themes/PaperMod/layouts/_default/baseof.html +++ b/themes/PaperMod/layouts/_default/baseof.html @@ -1,3 +1,7 @@ +{{- if lt hugo.Version "0.97.1" }} +{{- errorf "=> hugo v0.97.1 or greater is required for hugo-PaperMod to build " }} +{{- end -}} + diff --git a/themes/PaperMod/layouts/partials/post_meta.html b/themes/PaperMod/layouts/partials/post_meta.html index 8bc0e50..b0c0417 100644 --- a/themes/PaperMod/layouts/partials/post_meta.html +++ b/themes/PaperMod/layouts/partials/post_meta.html @@ -19,5 +19,5 @@ {{- end }} {{- with ($scratch.Get "meta") }} -{{- delimit . " · " -}} +{{- delimit . " · " | safeHTML -}} {{- end -}} diff --git a/themes/PaperMod/layouts/partials/share_icons.html b/themes/PaperMod/layouts/partials/share_icons.html index 4281c94..4ae1879 100644 --- a/themes/PaperMod/layouts/partials/share_icons.html +++ b/themes/PaperMod/layouts/partials/share_icons.html @@ -14,12 +14,12 @@ {{- with $ShareButtons }}{{ $custom = true }}{{ end }}
- {{- if (cond ($custom) (in $ShareButtons "twitter") (true)) }} - + {{- if (or (cond ($custom) (in $ShareButtons "x") (true)) (cond ($custom) (in $ShareButtons "twitter") (true))) }} + + d="M512 62.554 L 512 449.446 C 512 483.97 483.97 512 449.446 512 L 62.554 512 C 28.03 512 0 483.97 0 449.446 L 0 62.554 C 0 28.03 28.029 0 62.554 0 L 449.446 0 C 483.971 0 512 28.03 512 62.554 Z M 269.951 190.75 L 182.567 75.216 L 56 75.216 L 207.216 272.95 L 63.9 436.783 L 125.266 436.783 L 235.9 310.383 L 332.567 436.783 L 456 436.783 L 298.367 228.367 L 432.367 75.216 L 371.033 75.216 Z M 127.633 110 L 164.101 110 L 383.481 400.065 L 349.5 400.065 Z"/> {{- end }} diff --git a/themes/PaperMod/layouts/partials/svg.html b/themes/PaperMod/layouts/partials/svg.html index 37441e6..cc80839 100644 --- a/themes/PaperMod/layouts/partials/svg.html +++ b/themes/PaperMod/layouts/partials/svg.html @@ -49,6 +49,11 @@ +{{- else if (eq $icon_name "bugcrowd") -}} + + + {{- else if (eq $icon_name "buymeacoffee") -}} +{{- else if (eq $icon_name "codeberg") -}} + + + {{- else if (eq $icon_name "codepen") -}} @@ -302,6 +311,11 @@ +{{- else if (eq $icon_name "intigriti") -}} + + + {{- else if (eq $icon_name "itchio") -}} +{{- else if (eq $icon_name "x") -}} + + + + {{- else if (eq $icon_name "xda") -}}