diff --git a/README.md b/README.md index 00dec5a..7a80cca 100644 --- a/README.md +++ b/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/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, 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 diff --git a/i18n/no.yaml b/i18n/no.yaml new file mode 100644 index 0000000..2400348 --- /dev/null +++ b/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/i18n/sw.yaml b/i18n/sw.yaml new file mode 100644 index 0000000..5fceb1a --- /dev/null +++ b/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/i18n/vi.yaml b/i18n/vi.yaml index a3832ed..2eb05d0 100644 --- a/i18n/vi.yaml +++ b/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/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 15b8b1b..b0c0417 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -12,10 +12,12 @@ {{- $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 . " · " -}} +{{- delimit . " · " | safeHTML -}} {{- end -}} diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index fd59983..4ae1879 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -68,4 +68,14 @@ {{- end }} + {{- if (cond ($custom) (in $ShareButtons "ycombinator") (true)) }} + + + + + + {{- end }} diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 148e246..cc80839 100644 --- a/layouts/partials/svg.html +++ b/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") -}} @@ -195,6 +204,10 @@ stroke-linecap="round" stroke-linejoin="round"> +{{- else if (eq $icon_name "firefish") -}} + + + {{- else if (eq $icon_name "flickr") -}} +{{- else if (eq $icon_name "intigriti") -}} + + + {{- else if (eq $icon_name "itchio") -}} +{{- else if (eq $icon_name "leetcode") -}} + + + {{- else if (eq $icon_name "letterboxd") -}} @@ -487,6 +511,14 @@ +{{- else if (eq $icon_name "pixelfed") -}} + + + +{{- else if (eq $icon_name "pleroma") -}} + + + {{- else if (eq $icon_name "qq") -}} @@ -667,6 +699,12 @@ +{{- else if (eq $icon_name "wechat") -}} + + + + {{- else if (eq $icon_name "x") -}}