diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index fed8764eb..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -ko_fi: coteschung diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 7b513fb58..6d64e468a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -53,7 +53,7 @@ body: value: | - Ruby: - Jekyll: - - Chirpy: + - Chirpy: validations: required: true diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ebd2d7699..f603301f1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -14,7 +14,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2cfc403b..5423404aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: fetch-depth: 0 # for posts's lastmod diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f3f5bd32b..c122bed97 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index a357ba12d..5248c1676 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -11,5 +11,5 @@ jobs: commitlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: wagoid/commitlint-github-action@v6 diff --git a/.github/workflows/lint-js.yml b/.github/workflows/lint-js.yml index fd6d08f62..47ee7cba4 100644 --- a/.github/workflows/lint-js.yml +++ b/.github/workflows/lint-js.yml @@ -16,7 +16,7 @@ jobs: lint-js: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/lint-scss.yml b/.github/workflows/lint-scss.yml index bf02eea50..c96958ce3 100644 --- a/.github/workflows/lint-scss.yml +++ b/.github/workflows/lint-scss.yml @@ -12,7 +12,7 @@ jobs: lint-scss: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/pr-filter.yml b/.github/workflows/pr-filter.yml index 117b20a7f..6224d18f0 100644 --- a/.github/workflows/pr-filter.yml +++ b/.github/workflows/pr-filter.yml @@ -13,11 +13,11 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Check PR Content id: intercept - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/starter/pages-deploy.yml b/.github/workflows/starter/pages-deploy.yml index e38bc72d8..b865061eb 100644 --- a/.github/workflows/starter/pages-deploy.yml +++ b/.github/workflows/starter/pages-deploy.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 with: fetch-depth: 0 # submodules: true @@ -37,7 +37,7 @@ jobs: - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v6 - name: Setup Ruby uses: ruby/setup-ruby@v1 @@ -57,7 +57,7 @@ jobs: \-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/" - name: Upload site artifact - uses: actions/upload-pages-artifact@v4 + uses: actions/upload-pages-artifact@v5 with: path: "_site${{ steps.pages.outputs.base_path }}" @@ -70,4 +70,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 diff --git a/.gitignore b/.gitignore index 7dd7cefd9..562f4e59b 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,8 @@ package-lock.json # Misc _sass/vendors assets/js/dist + +# Hidden system files +*~ +.DS_Store +Thumbs.db diff --git a/README.md b/README.md index 7e57b2a52..b5ef1a7d7 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ A minimal, responsive, and feature-rich Jekyll theme for technical writing. - [![CI](https://img.shields.io/github/actions/workflow/status/cotes2020/jekyll-theme-chirpy/ci.yml?logo=github)][ci]  - [![Codacy Badge](https://img.shields.io/codacy/grade/4e556876a3c54d5e8f2d2857c4f43894?logo=codacy)][codacy]  - [![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy?color=goldenrod)][license]  - [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?&logo=RubyGems&logoColor=ghostwhite&label=gem&color=orange)][gem]  - [![Open in Dev Containers](https://img.shields.io/badge/Dev_Containers-Open-deepskyblue?logo=linuxcontainers)][open-container] + [![CI][badge-ci]][ci]  + [![Codacy Badge][badge-codacy]][codacy]  + [![GitHub license][badge-license]][license]  + [![Gem Version][badge-gem]][gem]  + [![Open in Dev Containers][badge-open-container]][open-container] [**Live Demo** →][demo] @@ -20,54 +20,48 @@ ## Features -- Dark Theme -- Localized UI language -- Pinned Posts on Home Page -- Hierarchical Categories -- Trending Tags -- Table of Contents -- Last Modified Date -- Syntax Highlighting -- Mathematical Expressions -- Mermaid Diagrams & Flowcharts -- Dark Mode Images -- Embed Media -- Comment Systems -- Built-in Search -- Atom Feeds -- PWA -- Web Analytics -- SEO & Performance Optimization +- **Design & UX** - Responsive layout, Dark/Light modes, Localized UI language, + and Dark mode images. +- **Content Management** - Pinned posts, Hierarchical categories, Trending tags, + Auto-generated Table of Contents, and Last modified dates. +- **Rich Text Support** - Syntax highlighting, Mathematical expressions, Mermaid + diagrams & flowcharts, and Embedded media. +- **Interactivity & Outreach** - Built-in search, Multiple comment systems, and + Atom feeds. +- **System & Optimization** - PWA support, integrated Web analytics, and + advanced SEO performance. ## Documentation -To learn how to use, develop, and upgrade the project, please refer to the [Wiki][wiki]. +To learn how to use, develop, and upgrade the project, please refer to the +[Wiki][wiki]. ## Contributing -Contributions (_pull requests_, _issues_, and _discussions_) are what make the open-source community such an amazing place -to learn, inspire, and create. Any contributions you make are greatly appreciated. -For details, see the "[Contributing Guidelines][contribute-guide]". +Contributions (_pull requests_, _issues_, and _discussions_) are what make the +open-source community such an amazing place to learn, inspire, and create. Any +contributions you make are greatly appreciated. +For details, please refer to our [Contributing Guidelines][contribute-guide]. ## Credits -### Contributors +This project is built on the [Jekyll][jekyllrb] ecosystem and integrates a +collection of [excellent libraries][lib]. Its avatar and favicon are sourced +from [ClipartMAX][clipartmax]. -Thanks to [all the contributors][contributors] involved in the development of the project! +Furthermore, thanks to everyone who contributed to the development of this project! -[![all-contributors](https://contrib.rocks/image?repo=cotes2020/jekyll-theme-chirpy&columns=16)][contributors] - — Made with [contrib.rocks](https://contrib.rocks) - -### Third-Party Assets - -This project is built on the [Jekyll][jekyllrb] ecosystem and some [great libraries][lib], and is developed using [VS Code][vscode] as well as tools provided by [JetBrains][jetbrains] under a non-commercial open-source software license. - -The avatar and favicon for the project's website are from [ClipartMAX][clipartmax]. +[![all-contributors][contributors-avatar]][contributors] ## License -This project is published under [MIT License][license]. +This project is licensed under the [MIT License][license]. +[badge-ci]: https://img.shields.io/github/actions/workflow/status/cotes2020/jekyll-theme-chirpy/ci.yml?logo=github +[badge-codacy]: https://img.shields.io/codacy/grade/4e556876a3c54d5e8f2d2857c4f43894?logo=codacy +[badge-license]: https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy?color=goldenrod +[badge-gem]: https://img.shields.io/gem/v/jekyll-theme-chirpy?&logo=RubyGems&logoColor=ghostwhite&label=gem&color=orange +[badge-open-container]: https://img.shields.io/badge/Dev_Containers-Open-deepskyblue?logo=linuxcontainers [gem]: https://rubygems.org/gems/jekyll-theme-chirpy [ci]: https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster [codacy]: https://app.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade @@ -79,6 +73,5 @@ This project is published under [MIT License][license]. [wiki]: https://github.com/cotes2020/jekyll-theme-chirpy/wiki [contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md [contributors]: https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors +[contributors-avatar]: https://contrib.rocks/image?repo=cotes2020/jekyll-theme-chirpy&columns=16&max=112 [lib]: https://github.com/cotes2020/chirpy-static-assets -[vscode]: https://code.visualstudio.com/ -[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy diff --git a/_config.yml b/_config.yml index 09eb8f5ae..57a665a11 100644 --- a/_config.yml +++ b/_config.yml @@ -108,6 +108,16 @@ social_preview_image: # string, local or CORS resources # boolean type, the global switch for TOC in posts. toc: true +actions: + # Display "Edit this post" action on each post page to encourage contributions. + edit_post: + enabled: false # set to true to display the "Edit this post" action. + url: "" # repository base URL, e.g. https://github.com/cotes2020/jekyll-theme-chirpy/edit/master + # Use dynamic or static URL for the edit link. + # If `static_url` is false, the post's path will be appended to the `url` above as the final edit link. + # Set to true if the URL should remain unchanged, which means each post will share the same edit link. + static_url: false # [ true | false ] + comments: # Global switch for the post-comment system. Keeping it empty means disabled. provider: # [disqus | utterances | giscus] diff --git a/_data/locales/ar.yml b/_data/locales/ar.yml index a79e02009..31477053f 100644 --- a/_data/locales/ar.yml +++ b/_data/locales/ar.yml @@ -46,9 +46,14 @@ not_found: statement: عذرا, الرابط التالي غير صالح أو انه يشير إلى صفحة غير موجودة. notification: - update_found: يتوفر اصدار جديد للمحتوى. + update_found: يتوفر محتوى جديد update: تحديث +theme: + light: فاتح + dark: داكن + system: النظام + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: دقيقة prompt: قراءة + edit: حرر هذا المنشور relate_posts: إقرأ المزيد share: شارك button: diff --git a/_data/locales/bg-BG.yml b/_data/locales/bg-BG.yml index 3fb060fda..e2f77c344 100644 --- a/_data/locales/bg-BG.yml +++ b/_data/locales/bg-BG.yml @@ -46,9 +46,14 @@ not_found: statement: Съжалявам, но на този URL адрес няма налично съдържание. notification: - update_found: Налична е нова версия на съдържанието. + update_found: Има ново съдържание update: Обнови +theme: + light: Светла + dark: Тъмна + system: Системна + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: мин prompt: четиво + edit: Редактирай тази публикация relate_posts: Още за четене share: Споделете button: diff --git a/_data/locales/ca-ES.yml b/_data/locales/ca-ES.yml index e3d5b39ce..9f4c6a2eb 100644 --- a/_data/locales/ca-ES.yml +++ b/_data/locales/ca-ES.yml @@ -46,9 +46,14 @@ not_found: statement: Ho sentim, hem perdut aquesta URL o apunta a alguna cosa que no existeix. notification: - update_found: Hi ha una nova versió de contingut disponible. + update_found: Hi ha contingut nou disponible update: Actualitzar +theme: + light: Clar + dark: Fosc + system: Sistema + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: " de lectura" + edit: Edita aquesta entrada relate_posts: Entrades relacionades share: Compartir button: diff --git a/_data/locales/cs-CZ.yml b/_data/locales/cs-CZ.yml index cf93f614a..f30195653 100644 --- a/_data/locales/cs-CZ.yml +++ b/_data/locales/cs-CZ.yml @@ -46,9 +46,14 @@ not_found: statement: Omlouváme se, adresu URL jsme špatně umístili nebo odkazuje na něco, co neexistuje. notification: - update_found: Je k dispozici nová verze obsahu. + update_found: Je tu nový obsah update: Aktualizace +theme: + light: Světlý + dark: Tmavý + system: Systém + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: minut prompt: čtení + edit: Uprav tento příspěvek relate_posts: Další čtení share: Sdílet button: diff --git a/_data/locales/da-DK.yml b/_data/locales/da-DK.yml index 4b41fb389..5fe2f1e0d 100644 --- a/_data/locales/da-DK.yml +++ b/_data/locales/da-DK.yml @@ -46,9 +46,14 @@ not_found: statement: Beklager, vi har malpaceret denne URL, eller den peger på et sted, som ikke findes. notification: - update_found: En ny version af indholdet er fundet! + update_found: Der er nyt indhold update: Opdater +theme: + light: Lys + dark: Mørk + system: System + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: læsetid + edit: Rediger dette opslag relate_posts: Læs videre share: Del button: diff --git a/_data/locales/de-DE.yml b/_data/locales/de-DE.yml index 6c9d91d46..0784524ec 100644 --- a/_data/locales/de-DE.yml +++ b/_data/locales/de-DE.yml @@ -45,9 +45,14 @@ not_found: statement: Entschuldigung, dieser Link verweist auf keine vorhandene Ressource. notification: - update_found: Eine neue Version ist verfügbar. + update_found: Neue Inhalte verfügbar update: Neue Version +theme: + light: Hell + dark: Dunkel + system: System + # ----- Posts related labels ----- post: @@ -59,6 +64,7 @@ post: read_time: unit: Minuten prompt: Lesezeit + edit: Diesen Eintrag bearbeiten relate_posts: Weiterlesen share: Teilen button: diff --git a/_data/locales/dv‑MV.yml b/_data/locales/dv‑MV.yml index 680ca1f8b..86416f66c 100644 --- a/_data/locales/dv‑MV.yml +++ b/_data/locales/dv‑MV.yml @@ -46,9 +46,14 @@ not_found: statement: ސޯރީ، މި ޔޫ.އާރއެލް މަށެވެއްނެ ނުވަތަ އެކަމެއް ނުވެއެވެ. notification: - update_found: ޔޫ ވާރޝަން ހުރިހާ. + update_found: އައު ކޮންޓެންޓެއް ފެނިއްޖެ update: އޮޕްޑޭޓް +theme: + light: އަލި + dark: އަނދިރި + system: ސިސްޓަމް + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: މިނެޓް prompt: އިސްކާރު + edit: މި ޕޯސްޓް އެޑިޓް ކުރު relate_posts: އެއްޗެހި ފަހުރަށްދަން share: ސެއާރް button: diff --git a/_data/locales/el-GR.yml b/_data/locales/el-GR.yml index b6d2a8663..fb8f87292 100644 --- a/_data/locales/el-GR.yml +++ b/_data/locales/el-GR.yml @@ -46,9 +46,14 @@ not_found: statement: Συγνώμη, έχουμε τοποθετήσει λάθος αυτήν την διεύθυνση URL ή υποδεικνύει κάτι που δεν υπάρχει. notification: - update_found: Υπάρχει διαθέσιμη μια νέα έκδοση του περιεχομένου. + update_found: Νέο περιεχόμενο διαθέσιμο update: Ενημέρωση +theme: + light: Φωτεινό + dark: Σκοτεινό + system: Σύστημα + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: Λεπτά prompt: διαβάσματος + edit: Επεξεργασία αυτής της δημοσίευσης relate_posts: Περισσότερα share: Κοινοποιήστε button: diff --git a/_data/locales/en.yml b/_data/locales/en.yml index 152d090ac..7f9952221 100644 --- a/_data/locales/en.yml +++ b/_data/locales/en.yml @@ -46,9 +46,14 @@ not_found: statement: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. notification: - update_found: A new version of content is available. + update_found: New content available update: Update +theme: + light: Light + dark: Dark + system: System + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: read + edit: Edit this post relate_posts: Further Reading share: Share button: diff --git a/_data/locales/es-ES.yml b/_data/locales/es-ES.yml index 8f8d149ea..0fd70dceb 100644 --- a/_data/locales/es-ES.yml +++ b/_data/locales/es-ES.yml @@ -46,9 +46,14 @@ not_found: statement: Lo sentimos, hemos perdido esa URL o apunta a algo que no existe. notification: - update_found: Hay una nueva versión de contenido disponible. + update_found: Hay contenido nuevo update: Actualizar +theme: + light: Claro + dark: Oscuro + system: Sistema + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: " de lectura" + edit: Edita esta entrada relate_posts: Lecturas adicionales share: Compartir button: diff --git a/_data/locales/fa-IR.yml b/_data/locales/fa-IR.yml index 7a33deb12..aaca8d461 100644 --- a/_data/locales/fa-IR.yml +++ b/_data/locales/fa-IR.yml @@ -46,9 +46,14 @@ not_found: statement: متأسفیم، لینک زیر معتبر نیست یا به صفحه‌ای که وجود ندارد اشاره می‌کند. notification: - update_found: نسخه جدیدی از محتوا موجود است. + update_found: محتوای جدیدی پیدا شد update: به‌روزرسانی +theme: + light: روشن + dark: تیره + system: سیستم + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: "دقیقه " prompt: " زمان مطالعه" + edit: ویرایش این پست relate_posts: بیشتر بخوانید share: اشتراک‌گذاری button: diff --git a/_data/locales/fi-FI.yml b/_data/locales/fi-FI.yml index 60c986205..459a95421 100644 --- a/_data/locales/fi-FI.yml +++ b/_data/locales/fi-FI.yml @@ -45,9 +45,14 @@ not_found: statement: Valitettavasti tällä URL-osoitteella ei ole saatavilla sisältöä. notification: - update_found: Uusi versio sisällöstä on saatavilla. + update_found: Uutta sisältöä löytyi update: Päivitä +theme: + light: Vaalea + dark: Tumma + system: Järjestelmä + # ----- Posts related labels ----- post: @@ -59,6 +64,7 @@ post: read_time: unit: minuuttia prompt: lukea + edit: Muokkaa tätä julkaisua relate_posts: Jatka lukemista share: Jaa button: diff --git a/_data/locales/fr-FR.yml b/_data/locales/fr-FR.yml index dce83c9f4..bcfa3d158 100644 --- a/_data/locales/fr-FR.yml +++ b/_data/locales/fr-FR.yml @@ -46,9 +46,14 @@ not_found: statement: Désolé, nous avons égaré cette URL ou elle pointe vers quelque chose qui n'existe pas. notification: - update_found: Une nouvelle version du contenu est disponible. + update_found: Nouveau contenu trouvé update: Mise à jour +theme: + light: Clair + dark: Sombre + system: Système + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: lire + edit: Modifier cet article relate_posts: Autres lectures share: Partager button: diff --git a/_data/locales/hu-HU.yml b/_data/locales/hu-HU.yml index be3a31b7d..4173cc63a 100644 --- a/_data/locales/hu-HU.yml +++ b/_data/locales/hu-HU.yml @@ -47,9 +47,14 @@ not_found: statement: Sajnáljuk, az URL-t rosszul helyeztük el, vagy valami nem létezőre mutat. notification: - update_found: Elérhető a tartalom új verziója. + update_found: Új tartalom található update: Frissítés +theme: + light: Világos + dark: Sötét + system: Rendszer + # ----- Posts related labels ----- post: @@ -61,6 +66,7 @@ post: read_time: unit: perc prompt: elolvasni + edit: Szerkesztés relate_posts: További olvasnivaló share: Megosztás button: diff --git a/_data/locales/id-ID.yml b/_data/locales/id-ID.yml index d772ec34f..1f578ccdf 100644 --- a/_data/locales/id-ID.yml +++ b/_data/locales/id-ID.yml @@ -46,9 +46,14 @@ not_found: statement: Maaf, kami gagal menemukan URL itu atau memang mengarah ke sesuatu yang tidak ada. notification: - update_found: Versi konten baru tersedia. + update_found: Konten baru tersedia update: Perbarui +theme: + light: Terang + dark: Gelap + system: Sistem + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: menit prompt: baca + edit: Sunting entri ini relate_posts: Postingan Lainya share: Bagikan button: diff --git a/_data/locales/it-IT.yml b/_data/locales/it-IT.yml index c8dfb447c..f11cb5ffd 100644 --- a/_data/locales/it-IT.yml +++ b/_data/locales/it-IT.yml @@ -45,9 +45,14 @@ not_found: statement: Ci scusiamo, non è stato possibile trovare l'URL in questione. Potrebbe puntare ad una pagina non esistente. notification: - update_found: Nuova versione del contenuto disponibile. + update_found: Nuovi contenuti trovati update: Aggiornamento +theme: + light: Chiaro + dark: Scuro + system: Sistema + # ----- Posts related labels ----- post: @@ -59,6 +64,7 @@ post: read_time: unit: min prompt: lettura + edit: Modifica questo post relate_posts: Continua a leggere share: Condividi button: diff --git a/_data/locales/ja-JP.yml b/_data/locales/ja-JP.yml index 8e016b997..f5f677c75 100644 --- a/_data/locales/ja-JP.yml +++ b/_data/locales/ja-JP.yml @@ -46,9 +46,14 @@ not_found: statement: このURLは存在しないものを指し示しています。 notification: - update_found: 新しいバージョンが利用可能です。 + update_found: 新しいコンテンツがあります update: 更新 +theme: + light: ライト + dark: ダーク + system: システム + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: 分 prompt: で読めます + edit: この投稿を編集 relate_posts: さらに読む share: シェア button: diff --git a/_data/locales/ko-KR.yml b/_data/locales/ko-KR.yml index 82976349c..623036f41 100644 --- a/_data/locales/ko-KR.yml +++ b/_data/locales/ko-KR.yml @@ -46,9 +46,14 @@ not_found: statement: 해당 URL은 존재하지 않습니다. notification: - update_found: 새 버전의 콘텐츠를 사용할 수 있습니다. + update_found: 새 콘텐츠가 있습니다 update: 업데이트 +theme: + light: 라이트 + dark: 다크 + system: 시스템 + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: 분 prompt: 읽는 시간 + edit: 이 글 편집 relate_posts: 관련된 글 share: 공유하기 button: diff --git a/_data/locales/ku-IQ.yml b/_data/locales/ku-IQ.yml index bcc53565f..03ee5d1a8 100644 --- a/_data/locales/ku-IQ.yml +++ b/_data/locales/ku-IQ.yml @@ -46,9 +46,14 @@ not_found: statement: ببوورە، ئەم بەستەرە نادۆزرێتەوە یان ئاماژە بە شتێک دەکات کە بوونی نییە. notification: - update_found: وەشانێکی نوێی ناوەڕۆک بەردەستە. + update_found: ناوەڕۆکی نوێ بەردەستە update: نوێکردنەوە +theme: + light: ڕووناک + dark: تاریک + system: سیستەم + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: خولەک prompt: خوێندنەوە + edit: ئەم بابەتە دەستکاری بکە relate_posts: بابەتی پەیوەندیدار share: بڵاوکردنەوە button: diff --git a/_data/locales/my-MM.yml b/_data/locales/my-MM.yml index d5bf728f9..486f2aa29 100644 --- a/_data/locales/my-MM.yml +++ b/_data/locales/my-MM.yml @@ -46,9 +46,14 @@ not_found: statement: ဝမ်းနည်းပါသည်၊ ကျွန်ုပ်တို့သည် အဆိုပါ URL ကို မှားယွင်းစွာ နေရာချထားခြင်း သို့မဟုတ် ၎င်းသည် မရှိသောအရာကို ညွှန်ပြနေပါသည်။ notification: - update_found: အကြောင်းအရာဗားရှင်းအသစ်ကို ရနိုင်ပါပြီ။ + update_found: အကြောင်းအရာအသစ် တွေ့ရှိပါသည် update: အပ်ဒိတ် +theme: + light: အလင်း + dark: အမှောင် + system: စနစ် + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: မိနစ် prompt: ဖတ်ပါမည် + edit: ဤပို့စ်ကို တည်းဖြတ်ပါ relate_posts: နောက်ထပ်ဖတ်ရန် share: မျှဝေရန် button: diff --git a/_data/locales/nl-NL.yml b/_data/locales/nl-NL.yml index d7e8016d0..97ff16cb4 100644 --- a/_data/locales/nl-NL.yml +++ b/_data/locales/nl-NL.yml @@ -46,9 +46,14 @@ not_found: statement: Sorry, we hebben de URL verkeerd geplaatst of hij verwijst naar iets dat niet bestaat. notification: - update_found: Nieuwe versie van inhoud beschikbaar. + update_found: Nieuwe inhoud gevonden update: Update +theme: + light: Licht + dark: Donker + system: Systeem + # ----- Posts related labels ----- post: written_by: Door @@ -59,6 +64,7 @@ post: read_time: unit: min prompt: lees + edit: Bewerk dit bericht relate_posts: Verder Lezen share: Deel button: diff --git a/_data/locales/ps‑AF.yml b/_data/locales/ps‑AF.yml index fca687723..c10321c7d 100644 --- a/_data/locales/ps‑AF.yml +++ b/_data/locales/ps‑AF.yml @@ -46,9 +46,14 @@ not_found: statement: بښنه غواړو، دغه URL ناسم دی یا هغه څه ته اشاره کوي چې شتون نه لري. notification: - update_found: نوې نسخه شتون لري. + update_found: نوې منځپانګه شتون لري update: تازه +theme: + light: روښانه + dark: تیاره + system: سیستم + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: دقیقې prompt: لوستل + edit: دغه لیکنه سمول relate_posts: نوره لوستنه share: شریکول button: diff --git a/_data/locales/pt-BR.yml b/_data/locales/pt-BR.yml index 7ca60a74b..98be016e1 100644 --- a/_data/locales/pt-BR.yml +++ b/_data/locales/pt-BR.yml @@ -46,9 +46,14 @@ not_found: statement: Desculpe, a página não foi encontrada. notification: - update_found: Uma nova versão do conteúdo está disponível. + update_found: Novo conteúdo encontrado update: atualização +theme: + light: Claro + dark: Escuro + system: Sistema + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: " de leitura" + edit: Editar esta postagem relate_posts: Leia também share: Compartilhar button: diff --git a/_data/locales/ru-RU.yml b/_data/locales/ru-RU.yml index 868ba9578..8ecfb45b7 100644 --- a/_data/locales/ru-RU.yml +++ b/_data/locales/ru-RU.yml @@ -45,9 +45,14 @@ not_found: statement: Извините, мы перепутали URL-адрес или он указывает на что-то несуществующее. notification: - update_found: Доступна новая версия контента. + update_found: Найден новый контент update: Обновить +theme: + light: Светлая + dark: Темная + system: Системная + # ----- Posts related labels ----- post: @@ -59,6 +64,7 @@ post: read_time: unit: мин. prompt: чтения + edit: Редактировать этот пост relate_posts: Похожие посты share: Поделиться button: diff --git a/_data/locales/sl-SI.yml b/_data/locales/sl-SI.yml index 4d9434d44..946b41fdd 100644 --- a/_data/locales/sl-SI.yml +++ b/_data/locales/sl-SI.yml @@ -46,9 +46,14 @@ not_found: statement: Oprostite, hiperpovezava je neustrezna ali vsebina ne obstajata. #Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. notification: - update_found: Novejša različica vsebine je na voljo. #A new version of content is available. + update_found: Nova vsebina je na voljo update: Posodobi #Update +theme: + light: Svetla + dark: Temna + system: Sistemska + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: beri #read + edit: Uredi to objavo #Edit this post relate_posts: Nadaljnje branje #Further Reading share: Deli #Share button: diff --git a/_data/locales/sv-SE.yml b/_data/locales/sv-SE.yml index decb59cf3..5f1bcca6d 100644 --- a/_data/locales/sv-SE.yml +++ b/_data/locales/sv-SE.yml @@ -46,9 +46,14 @@ not_found: statement: Ursäkta, vi har tappat bort den här webbadressen eller så pekar den på något som inte längre finns. notification: - update_found: Det finns en ny version av innehållet. + update_found: Nytt innehåll hittades update: Uppdatera sidan +theme: + light: Ljust + dark: Mörkt + system: System + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: min prompt: läsning + edit: Redigera detta inlägg relate_posts: Mer läsning share: Dela button: diff --git a/_data/locales/th.yml b/_data/locales/th.yml index a3f41a0e1..64308ffd4 100644 --- a/_data/locales/th.yml +++ b/_data/locales/th.yml @@ -46,9 +46,14 @@ not_found: statement: ขออภัย เราวาง URL นั้นไว้ผิดที่ หรือมันชี้ไปยังสิ่งที่ไม่มีอยู่ notification: - update_found: มีเวอร์ชันใหม่ของเนื้อหา + update_found: พบเนื้อหาใหม่ update: อัปเดต +theme: + light: สว่าง + dark: มืด + system: ระบบ + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: นาที prompt: อ่าน + edit: แก้ไขโพสต์นี้ relate_posts: อ่านต่อ share: แชร์ button: diff --git a/_data/locales/tr-TR.yml b/_data/locales/tr-TR.yml index 768f57cd1..9f919f1c7 100644 --- a/_data/locales/tr-TR.yml +++ b/_data/locales/tr-TR.yml @@ -46,9 +46,14 @@ not_found: statement: Üzgünüz, bu linki yanlış yerleştirdik veya var olmayan bir şeye işaret ediyor. notification: - update_found: İçeriğin yeni bir sürümü mevcut. + update_found: Yeni içerik bulundu update: Güncelle +theme: + light: Açık + dark: Koyu + system: Sistem + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: dakikada prompt: okunabilir + edit: Bu gönderiyi düzenle relate_posts: Benzer Gönderiler share: Paylaş button: diff --git a/_data/locales/uk-UA.yml b/_data/locales/uk-UA.yml index 8fef52e85..0de70abd5 100644 --- a/_data/locales/uk-UA.yml +++ b/_data/locales/uk-UA.yml @@ -46,9 +46,14 @@ not_found: statement: Вибачте, це посилання вказує на ресурс, що не існує. notification: - update_found: Доступна нова версія вмісту. + update_found: Знайдено новий вміст update: Оновлення +theme: + light: Світла + dark: Темна + system: Системна + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: хвилин prompt: читання + edit: Редагувати цей пост relate_posts: Вас також може зацікавити share: Поділитися button: diff --git a/_data/locales/ur-PK.yml b/_data/locales/ur-PK.yml index e5184df17..28aa31e9c 100644 --- a/_data/locales/ur-PK.yml +++ b/_data/locales/ur-PK.yml @@ -46,9 +46,14 @@ not_found: statement: معذرت، یہ URL غلط ہے یا جس چیز کی طرف اشارہ کر رہا ہے وہ موجود نہیں۔ notification: - update_found: نیا مواد دستیاب ہے۔ + update_found: نیا مواد مل گیا update: اپ ڈیٹ +theme: + light: روشن + dark: تاریک + system: سسٹم + # ----- Posts related labels ----- post: @@ -60,6 +65,7 @@ post: read_time: unit: منٹ prompt: پڑھیں + edit: اس تحریر میں ترمیم کریں relate_posts: مزید مطالعہ share: شیئر button: diff --git a/_data/locales/vi-VN.yml b/_data/locales/vi-VN.yml index 6c2ceffde..ef6321fa7 100644 --- a/_data/locales/vi-VN.yml +++ b/_data/locales/vi-VN.yml @@ -45,9 +45,14 @@ not_found: statement: Xin lỗi, chúng tôi đã đặt nhầm URL hoặc đường dẫn trỏ đến một trang nào đó không tồn tại. notification: - update_found: Đã có phiên bản mới của nội dung. + update_found: Đã tìm thấy nội dung mới update: Cập nhật +theme: + light: Sáng + dark: Tối + system: Hệ thống + # ----- Posts related labels ----- post: @@ -59,6 +64,7 @@ post: read_time: unit: phút prompt: đọc + edit: Chỉnh sửa bài viết này relate_posts: Bài viết liên quan share: Chia sẻ button: diff --git a/_data/locales/zh-CN.yml b/_data/locales/zh-CN.yml index 5c1341018..c082bd1b9 100644 --- a/_data/locales/zh-CN.yml +++ b/_data/locales/zh-CN.yml @@ -45,9 +45,14 @@ not_found: statement: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。 notification: - update_found: 发现新版本的内容。 + update_found: 发现新内容 update: 更新 +theme: + light: 浅色 + dark: 深色 + system: 跟随系统 + # ----- Posts related labels ----- post: @@ -59,6 +64,7 @@ post: read_time: unit: 分钟 prompt: 阅读 + edit: 编辑此文 relate_posts: 相关文章 share: 分享 button: diff --git a/_data/locales/zh-TW.yml b/_data/locales/zh-TW.yml index 33a4330bb..883062fe4 100644 --- a/_data/locales/zh-TW.yml +++ b/_data/locales/zh-TW.yml @@ -45,9 +45,14 @@ not_found: statement: 抱歉,您可能正在存取一個已被移動的 URL,或者它從未存在。 notification: - update_found: 發現新版本更新。 + update_found: 發現新內容 update: 更新 +theme: + light: 淺色 + dark: 深色 + system: 跟隨系統 + # ----- Posts related labels ----- post: @@ -59,6 +64,7 @@ post: read_time: unit: 分鐘 prompt: 閱讀 + edit: 編輯此文 relate_posts: 相關文章 share: 分享 button: diff --git a/_data/origin/cors.yml b/_data/origin/cors.yml index 8e0c0ba85..719d8fbe4 100644 --- a/_data/origin/cors.yml +++ b/_data/origin/cors.yml @@ -19,36 +19,39 @@ webfonts: https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Sour # Libraries +bootstrap: + css: https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css + toc: - css: https://cdn.jsdelivr.net/npm/tocbot@4.36.4/dist/tocbot.min.css - js: https://cdn.jsdelivr.net/npm/tocbot@4.36.4/dist/tocbot.min.js + css: https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.css + js: https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js fontawesome: - css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.2.0/css/all.min.css + css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7/css/all.min.css search: - js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js + js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1/dest/simple-jekyll-search.min.js mermaid: - js: https://cdn.jsdelivr.net/npm/mermaid@11.13.0/dist/mermaid.min.js + js: https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js dayjs: js: - common: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/dayjs.min.js - locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/locale/:LOCALE.js - relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/plugin/relativeTime.js - localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/plugin/localizedFormat.js + common: https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js + locale: https://cdn.jsdelivr.net/npm/dayjs@1/locale/:LOCALE.js + relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js + localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/localizedFormat.js glightbox: - css: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/css/glightbox.min.css - js: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/js/glightbox.min.js + css: https://cdn.jsdelivr.net/npm/glightbox@3/dist/css/glightbox.min.css + js: https://cdn.jsdelivr.net/npm/glightbox@3/dist/js/glightbox.min.js lazy-polyfill: - css: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.min.css - js: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.umd.min.js + css: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2/dist/loading-attribute-polyfill.min.css + js: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2/dist/loading-attribute-polyfill.umd.min.js clipboard: - js: https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js + js: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js mathjax: - js: https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js + js: https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js diff --git a/_includes/comments/disqus.html b/_includes/comments/disqus.html index fd12a3c72..0fb676606 100644 --- a/_includes/comments/disqus.html +++ b/_includes/comments/disqus.html @@ -19,7 +19,7 @@ {%- comment -%} Auto switch theme {%- endcomment -%} function reloadDisqus(event) { - if (event.source === window && event.data && event.data.id === Theme.ID) { + if (event.source === window && event.data && event.data.id === Theme.eventId) { {%- comment -%} Disqus hasn't been loaded {%- endcomment -%} if (typeof DISQUS === 'undefined') { return; @@ -33,7 +33,7 @@ addDisqus(); - if (Theme.switchable) { + if (Theme.isToggleable) { addEventListener('message', reloadDisqus); } diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html index 805847202..ddaf64706 100644 --- a/_includes/comments/giscus.html +++ b/_includes/comments/giscus.html @@ -1,8 +1,8 @@ - {% endif %} diff --git a/_includes/notification.html b/_includes/notification.html index 80049b0a7..ffb94b0aa 100644 --- a/_includes/notification.html +++ b/_includes/notification.html @@ -1,24 +1,28 @@ diff --git a/_includes/post-edit.html b/_includes/post-edit.html new file mode 100644 index 000000000..a97890e19 --- /dev/null +++ b/_includes/post-edit.html @@ -0,0 +1,23 @@ + + +{% assign enabled = site.actions.edit_post.enabled %} +{% assign url = site.actions.edit_post.url %} +{% assign static_url = site.actions.edit_post.static_url %} + +{% unless static_url %} + {% assign url = url | append: '/' | append: page.path %} +{% endunless %} + +{% if enabled %} +
+ {% assign edit = site.data.locales[include.lang].post.edit %} + + + {{ edit }} + +
+{% endif %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 1cd0ee8a7..b325ba871 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -40,11 +40,53 @@ -