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 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/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: 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: 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: "คัดลอกแล้ว!" 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 . " · " -}} 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 }} + diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index e69cbc1..c87a22c 100644 --- a/layouts/partials/social_icons.html +++ b/layouts/partials/social_icons.html @@ -1,6 +1,6 @@
{{- range .icons }} - + {{ partial "svg.html" . }} {{- end }} diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index e224640..37441e6 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") -}} +{{- else if (eq $icon_name "googleplaystore") -}} + + + {{- else if (eq $icon_name "googlepodcasts") -}} +{{- else if (eq $icon_name "leetcode") -}} + + + {{- else if (eq $icon_name "letterboxd") -}} @@ -479,6 +493,18 @@ +{{- else if (eq $icon_name "printables") -}} + + + +{{- else if (eq $icon_name "pixelfed") -}} + + + +{{- else if (eq $icon_name "pleroma") -}} + + + {{- else if (eq $icon_name "qq") -}} @@ -497,6 +523,12 @@ +{{- else if (eq $icon_name "rootme") -}} + + + + {{- else if (eq $icon_name "rss") -}} @@ -589,17 +621,28 @@ - {{- else if (eq $icon_name "telegram") -}} +{{- else if (eq $icon_name "thingiverse") -}} + + + +{{- else if (eq $icon_name "threads") -}} + + + {{- else if (eq $icon_name "threema") -}} +{{- else if (eq $icon_name "tidal") -}} + + + {{- else if (eq $icon_name "tiktok") -}} @@ -613,7 +656,7 @@ {{- else if (eq $icon_name "tumblr") -}} - + {{- else if (eq $icon_name "twitch") -}} +{{- else if (eq $icon_name "wechat") -}} + + + + {{- else if (eq $icon_name "xda") -}}