diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 3e6cf7e0..b7d5b289 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -26,7 +26,7 @@ Please fill the template below - Device/Os: [e.g. Android 10] - Type: [e.g. Desktop/Mobile] - Browser and version [e.g. Chrome 86.0]: - - Hugo Version [ >=0.83.0 expected]: + - Hugo Version [ >=0.97.1 expected]: - Theme Version [e.g. v4.0, master, or commit-id ]: **Steps to reproduce the behavior:** diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 305a6dec..c7b8351a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -15,7 +15,7 @@ on: hugoVersion: description: "Hugo Version" required: false - default: "0.83.0" + default: "0.97.1" # Allow one concurrent deployment concurrency: @@ -38,7 +38,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: "0.83.0" + HUGO_VERSION: "0.97.1" steps: - name: Check version if: ${{ github.event.inputs.hugoVersion }} @@ -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/README.md b/README.md index 1083dd51..f38b554f 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ **ExampleSite** can be found here: [**exampleSite**](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source. [![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/themes/hugo-papermod/) -[![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=0.83.0&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.83.0) -[![Discord](https://img.shields.io/discord/971046860317921340?label=Discord)](https://discord.gg/ahpmTvhVmp) +[![Minimum Hugo Version](https://img.shields.io/static/v1?label=HUGO-version&message=>0.97.1&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.97.1) +[![Discord](https://img.shields.io/discord/971046860317921340?label=Discord&logo=discord)](https://discord.gg/ahpmTvhVmp) [![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE) ![code-size](https://img.shields.io/github/languages/code-size/adityatelange/hugo-PaperMod) @@ -80,6 +80,14 @@ Release ChangeLog has info about stuff added: **[Releases](https://github.com/ad --- +## Support 🫶 + +- Star 🌟 this repository. +- Help spread the word about PaperMod by sharing it on social media and recommending it to your friends. 🗣️ +- You can also sponsor 🏅 on [Github Sponsors](https://github.com/sponsors/adityatelange) / [Ko-Fi](https://ko-fi.com/adityatelange). + +--- + ## Special Thanks 🌟 - [**Highlight.js**](https://github.com/highlightjs/highlight.js) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index ba6e5a23..47b9888c 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -83,8 +83,7 @@ } .post-content del { - text-decoration: none; - background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0 50%/1px 1px repeat-x; + text-decoration: line-through; } .post-content dl, @@ -400,4 +399,4 @@ h1>a>svg { img.in-text { display: inline; margin: auto; -} \ No newline at end of file +} diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index f509cf6e..7393d57d 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 06ebcfba..9484e751 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/el.yaml b/i18n/el.yaml new file mode 100644 index 00000000..4257bac8 --- /dev/null +++ b/i18n/el.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: "αντιγράφηκε!" \ No newline at end of file diff --git a/i18n/fr.yaml b/i18n/fr.yaml index b074c107..e48d8e98 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/it.yaml b/i18n/it.yaml index ef41db4e..c87c95d0 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Pag Prec" + translation: "Precedente" - id: next_page - translation: "Pag Succ" + translation: "Successivo" - id: read_time translation: @@ -15,11 +15,17 @@ other: "{{ .Count }} parole" - id: toc - translation: "Tabella dei Contenuti" + translation: "Indice contenuti" - id: translations translation: "Traduzioni" +- id: home + translation: "Home" + +- id: edit_post + translation: "Modifica" + - id: code_copy translation: "copia" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index bc7bf377..93948d37 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "前のページ" + translation: "前へ" - id: next_page - translation: "次のページ" + translation: "次へ" - id: read_time translation: diff --git a/i18n/pl.yaml b/i18n/pl.yaml index edc0ce8d..81b0e778 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 00000000..d8036ae5 --- /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/_default/archives.html b/layouts/_default/archives.html index e400e2c5..d2c4d76b 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -1,7 +1,25 @@ {{- define "main" }}