Merge branch 'master' into production
This commit is contained in:
commit
54ba8befbe
27 changed files with 441 additions and 100 deletions
|
@ -9,6 +9,8 @@ trim_trailing_whitespace = true
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
|
||||||
[*.js]
|
[*.js]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ruby: ['2.7', '3.0', '3.1']
|
ruby: [2.7, 3]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
2
.github/workflows/pages-deploy.yml.hook
vendored
2
.github/workflows/pages-deploy.yml.hook
vendored
|
@ -42,7 +42,7 @@ jobs:
|
||||||
- name: Setup Ruby
|
- name: Setup Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.1' # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted
|
ruby-version: 3 # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
|
|
||||||
- name: Build site
|
- name: Build site
|
||||||
|
|
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -2,6 +2,24 @@
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [5.5.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v5.4.0...v5.5.0) (2023-01-29)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **i18n:** add Arabic translation ([#857](https://github.com/cotes2020/jekyll-theme-chirpy/issues/857)) ([765af53](https://github.com/cotes2020/jekyll-theme-chirpy/commit/765af53b77e5c63804784d5728f5970ae274c2c7))
|
||||||
|
* **i18n:** add Czech language ([#833](https://github.com/cotes2020/jekyll-theme-chirpy/issues/833)) ([98d48f5](https://github.com/cotes2020/jekyll-theme-chirpy/commit/98d48f5da412276d4a0c99cd01a87b19349bc6bc))
|
||||||
|
* **i18n:** add Finnish translations ([#843](https://github.com/cotes2020/jekyll-theme-chirpy/issues/843)) ([d6d0318](https://github.com/cotes2020/jekyll-theme-chirpy/commit/d6d03183eaf94b44e037cc48b6e1c47cee183f6e))
|
||||||
|
* **i18n:** add Italian translation ([#850](https://github.com/cotes2020/jekyll-theme-chirpy/issues/850)) ([9a011e1](https://github.com/cotes2020/jekyll-theme-chirpy/commit/9a011e14d66195d8b2fb9ec62f3e60a3e56cd032))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* copy command line incomplete(`.gp` part) ([41ed331](https://github.com/cotes2020/jekyll-theme-chirpy/commit/41ed33145639415148aec8e85edc7a6fd0de0ca3))
|
||||||
|
* correct encoding of spaces in share URLs ([#835](https://github.com/cotes2020/jekyll-theme-chirpy/issues/835)) ([f2d2858](https://github.com/cotes2020/jekyll-theme-chirpy/commit/f2d285844e6e2979f2b0eec1d20073d3c05b6c0c))
|
||||||
|
* post's image would cover the PWA update alert ([bd374dd](https://github.com/cotes2020/jekyll-theme-chirpy/commit/bd374dd383c50f89c8f018ecb4e25772eeb8f6d8))
|
||||||
|
* prompt with nested blockquotes renders incorrectly ([#846](https://github.com/cotes2020/jekyll-theme-chirpy/issues/846)) ([babb4a0](https://github.com/cotes2020/jekyll-theme-chirpy/commit/babb4a0c5a58ceb2e4093bc465670accdd526c18))
|
||||||
|
|
||||||
## [5.4.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v5.3.2...v5.4.0) (2022-12-27)
|
## [5.4.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v5.3.2...v5.4.0) (2022-12-27)
|
||||||
|
|
||||||
|
|
||||||
|
|
15
Gemfile
15
Gemfile
|
@ -10,10 +10,19 @@ end
|
||||||
|
|
||||||
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
# and associated library.
|
# and associated library.
|
||||||
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
|
platforms :mingw, :x64_mingw, :mswin, :jruby do
|
||||||
gem "tzinfo", "~> 1.2"
|
gem "tzinfo", ">= 1", "< 3"
|
||||||
gem "tzinfo-data"
|
gem "tzinfo-data"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Performance-booster for watching directories on Windows
|
# Performance-booster for watching directories on Windows
|
||||||
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
|
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
|
||||||
|
|
||||||
|
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
|
||||||
|
# do not have a Java counterpart.
|
||||||
|
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
|
||||||
|
|
||||||
|
# Lock jekyll-sass-converter to 2.x on Linux-musl
|
||||||
|
if RUBY_PLATFORM =~ /linux-musl/
|
||||||
|
gem "jekyll-sass-converter", "~> 2.0"
|
||||||
|
end
|
||||||
|
|
93
_data/locales/ar.yml
Normal file
93
_data/locales/ar.yml
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
# The layout text of site
|
||||||
|
|
||||||
|
# ----- Commons label -----
|
||||||
|
|
||||||
|
layout:
|
||||||
|
post: منشور
|
||||||
|
category: فئة
|
||||||
|
tag: وسم
|
||||||
|
|
||||||
|
# The tabs of sidebar
|
||||||
|
tabs:
|
||||||
|
# format: <filename_without_extension>: <value>
|
||||||
|
home: الرئيسية
|
||||||
|
categories: الفئات
|
||||||
|
tags: الوسوم
|
||||||
|
archives: الأرشيف
|
||||||
|
about: حول
|
||||||
|
|
||||||
|
# the text displayed in the search bar & search results
|
||||||
|
search:
|
||||||
|
hint: بحث
|
||||||
|
cancel: إلغاء
|
||||||
|
no_results: نأسف! لا يوجد نتائج.
|
||||||
|
|
||||||
|
panel:
|
||||||
|
lastmod: المحدثة مؤخرا
|
||||||
|
trending_tags: الوسوم الشائعة
|
||||||
|
toc: محتويات
|
||||||
|
|
||||||
|
copyright:
|
||||||
|
# Shown at the bottom of the post
|
||||||
|
license:
|
||||||
|
template: هذا المنشور تحت ترخيص :LICENSE_NAME بواسطة المؤلف.
|
||||||
|
name: CC BY 4.0
|
||||||
|
link: https://creativecommons.org/licenses/by/4.0/
|
||||||
|
|
||||||
|
# Displayed in the footer
|
||||||
|
brief: بعض الحقوق محفوظة.
|
||||||
|
verbose: >-
|
||||||
|
ما لم يذكر خلاف ذلك ، يتم ترخيص منشورات المدونة على هذا الموقع
|
||||||
|
بموجب ترخيص Creative Commons Attribution 4.0 International (CC BY 4.0) من قبل المؤلف.
|
||||||
|
|
||||||
|
meta: باستخدام :PLATFORM السمة :THEME.
|
||||||
|
|
||||||
|
not_found:
|
||||||
|
statment: عذرا, الرابط التالي غير صالح أو انه يشير إلى صفحة غير موجودة.
|
||||||
|
|
||||||
|
notification:
|
||||||
|
update_found: يتوفر اصدار جديد للمحتوى.
|
||||||
|
update: تحديث
|
||||||
|
|
||||||
|
# ----- Posts related labels -----
|
||||||
|
|
||||||
|
post:
|
||||||
|
written_by: بواسطة
|
||||||
|
posted: نشّر
|
||||||
|
updated: حدّث
|
||||||
|
words: كلمات
|
||||||
|
pageview_measure: مشاهدات
|
||||||
|
read_time:
|
||||||
|
unit: دقيقة
|
||||||
|
prompt: قراءة
|
||||||
|
relate_posts: إقرأ المزيد
|
||||||
|
share: شارك
|
||||||
|
button:
|
||||||
|
next: الأجدد
|
||||||
|
previous: الأقدم
|
||||||
|
copy_code:
|
||||||
|
succeed: تم النسخ!
|
||||||
|
share_link:
|
||||||
|
title: أنسخ الرابط
|
||||||
|
succeed: تم نسخ الرابط بنجاح!
|
||||||
|
# pinned prompt of posts list on homepage
|
||||||
|
pin_prompt: مثبت
|
||||||
|
|
||||||
|
# Date time format.
|
||||||
|
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
||||||
|
df:
|
||||||
|
post:
|
||||||
|
strftime: '%b %e, %Y'
|
||||||
|
dayjs: 'll'
|
||||||
|
archives:
|
||||||
|
strftime: '%b'
|
||||||
|
dayjs: 'MMM'
|
||||||
|
|
||||||
|
# categories page
|
||||||
|
categories:
|
||||||
|
category_measure:
|
||||||
|
singular: فئة
|
||||||
|
plural: فئات
|
||||||
|
post_measure:
|
||||||
|
singular: منشور
|
||||||
|
plural: منشورات
|
91
_data/locales/cs-CZ.yml
Normal file
91
_data/locales/cs-CZ.yml
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
# The layout text of site
|
||||||
|
|
||||||
|
# ----- Commons label -----
|
||||||
|
|
||||||
|
layout:
|
||||||
|
post: Příspěvek
|
||||||
|
category: Kategorie
|
||||||
|
tag: Štítek
|
||||||
|
|
||||||
|
# The tabs of sidebar
|
||||||
|
tabs:
|
||||||
|
# format: <filename_without_extension>: <value>
|
||||||
|
home: Domů
|
||||||
|
categories: Kategorie
|
||||||
|
tags: Štítky
|
||||||
|
archives: Archivy
|
||||||
|
about: O mně
|
||||||
|
|
||||||
|
# the text displayed in the search bar & search results
|
||||||
|
search:
|
||||||
|
hint: hledat
|
||||||
|
cancel: Zrušit
|
||||||
|
no_results: Ups! Žádný výsledek nenalezen.
|
||||||
|
|
||||||
|
panel:
|
||||||
|
lastmod: Nedávno aktualizováno
|
||||||
|
trending_tags: Trendy štítky
|
||||||
|
toc: Obsah
|
||||||
|
|
||||||
|
copyright:
|
||||||
|
# Shown at the bottom of the post
|
||||||
|
license:
|
||||||
|
template: Tento příspěvek je licencován pod :LICENSE_NAME autorem.
|
||||||
|
name: CC BY 4.0
|
||||||
|
link: https://creativecommons.org/licenses/by/4.0/
|
||||||
|
|
||||||
|
# Displayed in the footer
|
||||||
|
brief: Některá práva vyhrazena.
|
||||||
|
verbose: >-
|
||||||
|
Pokud není uvedeno jinak, jsou příspěvky na tomto webu licencovány
|
||||||
|
pod licencí Creative Commons Attribution 4.0 International (CC BY 4.0) Licence autora.
|
||||||
|
|
||||||
|
meta: Použití :PLATFORM s motivem :THEME.
|
||||||
|
|
||||||
|
not_found:
|
||||||
|
statment: 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: Aktualizace
|
||||||
|
|
||||||
|
# ----- Posts related labels -----
|
||||||
|
|
||||||
|
post:
|
||||||
|
written_by: Od
|
||||||
|
posted: Zveřejněno
|
||||||
|
updated: Aktualizováno
|
||||||
|
words: slova
|
||||||
|
pageview_measure: zhlednutí
|
||||||
|
read_time:
|
||||||
|
unit: minut
|
||||||
|
prompt: čtení
|
||||||
|
relate_posts: Další čtení
|
||||||
|
share: Sdílet
|
||||||
|
button:
|
||||||
|
next: Novější
|
||||||
|
previous: Starší
|
||||||
|
copy_code:
|
||||||
|
succeed: Zkopírováno!
|
||||||
|
share_link:
|
||||||
|
title: Kopírovat odkaz
|
||||||
|
succeed: Zkopírováno!
|
||||||
|
# pinned prompt of posts list on homepage
|
||||||
|
pin_prompt: Připnuto
|
||||||
|
|
||||||
|
# Date time format.
|
||||||
|
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
||||||
|
df:
|
||||||
|
post:
|
||||||
|
strftime: '%b %e, %Y'
|
||||||
|
dayjs: 'll'
|
||||||
|
archives:
|
||||||
|
strftime: '%b'
|
||||||
|
dayjs: 'MMM'
|
||||||
|
|
||||||
|
# categories page
|
||||||
|
categories:
|
||||||
|
category_measure: kategorie
|
||||||
|
post_measure:
|
||||||
|
singular: příspěvěk
|
||||||
|
plural: příspěvky
|
92
_data/locales/fi-FI.yml
Normal file
92
_data/locales/fi-FI.yml
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
# The layout text of site
|
||||||
|
|
||||||
|
# ----- Commons label -----
|
||||||
|
|
||||||
|
layout:
|
||||||
|
post: Julkaisu
|
||||||
|
category: Kateogoria
|
||||||
|
tag: Tagi
|
||||||
|
|
||||||
|
# The tabs of sidebar
|
||||||
|
tabs:
|
||||||
|
# format: <filename_without_extension>: <value>
|
||||||
|
home: Koti
|
||||||
|
categories: Kateogoriat
|
||||||
|
tags: Tagit
|
||||||
|
archives: Arkistot
|
||||||
|
about: Minusta
|
||||||
|
|
||||||
|
# the text displayed in the search bar & search results
|
||||||
|
search:
|
||||||
|
hint: etsi
|
||||||
|
cancel: Peruuta
|
||||||
|
no_results: Hups! Ei tuloksia.
|
||||||
|
|
||||||
|
panel:
|
||||||
|
lastmod: Viimeksi päivitetty
|
||||||
|
trending_tags: Trendaavat tagit
|
||||||
|
toc: Sisältö
|
||||||
|
|
||||||
|
copyright:
|
||||||
|
# Shown at the bottom of the post
|
||||||
|
license:
|
||||||
|
template: Tämä julkaisu on lisenssoitu :LICENSE_NAME julkaisijan toimesta.
|
||||||
|
name: CC BY 4.0
|
||||||
|
link: https://creativecommons.org/licenses/by/4.0/
|
||||||
|
|
||||||
|
# Displayed in the footer
|
||||||
|
brief: Jotkut oikeudet pidätetään.
|
||||||
|
verbose: >-
|
||||||
|
Paitsi jos erikseen mainitaan on kaikki sisältö Creative Commons Attribution 4.0 International (CC BY 4.0) Lisensoitu kirjoittajan toimesta.
|
||||||
|
|
||||||
|
meta: Käytetään :PLATFORM iä Teema :THEME.
|
||||||
|
|
||||||
|
not_found:
|
||||||
|
statment: Valitettavasti tällä URL-osoitteella ei ole saatavilla sisältöä.
|
||||||
|
|
||||||
|
notification:
|
||||||
|
update_found: Uusi versio sisällöstä on saatavilla.
|
||||||
|
update: Päivitä
|
||||||
|
|
||||||
|
# ----- Posts related labels -----
|
||||||
|
|
||||||
|
post:
|
||||||
|
written_by: Kirjoittaja
|
||||||
|
posted: Julkaistu
|
||||||
|
updated: Päivitetty
|
||||||
|
words: sanaa
|
||||||
|
pageview_measure: katselukertoja
|
||||||
|
read_time:
|
||||||
|
unit: minuuttia
|
||||||
|
prompt: lukea
|
||||||
|
relate_posts: Jatka lukemista
|
||||||
|
share: Jaa
|
||||||
|
button:
|
||||||
|
next: Uudempi
|
||||||
|
previous: Vanhempi
|
||||||
|
copy_code:
|
||||||
|
succeed: Kopiotu!
|
||||||
|
share_link:
|
||||||
|
title: Kopioi linkki
|
||||||
|
succeed: Linkki kopioitu onnistuneesti!
|
||||||
|
# pinned prompt of posts list on homepage
|
||||||
|
pin_prompt: Kiinnitetty
|
||||||
|
|
||||||
|
# Date time format.
|
||||||
|
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
||||||
|
df:
|
||||||
|
post:
|
||||||
|
strftime: '%b %e, %Y'
|
||||||
|
dayjs: 'll'
|
||||||
|
archives:
|
||||||
|
strftime: '%b'
|
||||||
|
dayjs: 'MMM'
|
||||||
|
|
||||||
|
# categories page
|
||||||
|
categories:
|
||||||
|
category_measure:
|
||||||
|
singular: kategoria
|
||||||
|
plural: kategoriat
|
||||||
|
post_measure:
|
||||||
|
singular: julkaisu
|
||||||
|
plural: julkaisut
|
93
_data/locales/it-IT.yml
Normal file
93
_data/locales/it-IT.yml
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
# The layout text of site
|
||||||
|
|
||||||
|
# ----- Commons label -----
|
||||||
|
|
||||||
|
layout:
|
||||||
|
post: Post
|
||||||
|
category: Categoria
|
||||||
|
tag: Tag
|
||||||
|
|
||||||
|
# The tabs of sidebar
|
||||||
|
tabs:
|
||||||
|
# format: <filename_without_extension>: <value>
|
||||||
|
home: Pagina principale
|
||||||
|
categories: Categorie
|
||||||
|
tags: Tags
|
||||||
|
archives: Archivio
|
||||||
|
about: Informazioni
|
||||||
|
|
||||||
|
# the text displayed in the search bar & search results
|
||||||
|
search:
|
||||||
|
hint: ricerca
|
||||||
|
cancel: Cancella
|
||||||
|
no_results: Oops! La ricerca non ha fornito risultati.
|
||||||
|
|
||||||
|
panel:
|
||||||
|
lastmod: Aggiornati recentemente
|
||||||
|
trending_tags: Tags più cliccati
|
||||||
|
toc: Contenuti
|
||||||
|
|
||||||
|
copyright:
|
||||||
|
# Shown at the bottom of the post
|
||||||
|
license:
|
||||||
|
template: Questo post è sotto licenza :LICENSE_NAME a nome dell'autore.
|
||||||
|
name: CC BY 4.0
|
||||||
|
link: https://creativecommons.org/licenses/by/4.0/
|
||||||
|
|
||||||
|
# Displayed in the footer
|
||||||
|
brief: Alcuni diritti riservati.
|
||||||
|
verbose: >-
|
||||||
|
Eccetto quando esplicitamente menzionato, i post di questo blog sono da ritenersi sotto
|
||||||
|
i termini di licenza Creative Commons Attribution 4.0 International (CC BY 4.0).
|
||||||
|
|
||||||
|
|
||||||
|
meta: Servizio offerto da :PLATFORM con tema :THEME.
|
||||||
|
not_found:
|
||||||
|
statment: 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: Aggiornamento
|
||||||
|
|
||||||
|
# ----- Posts related labels -----
|
||||||
|
|
||||||
|
post:
|
||||||
|
written_by: Da
|
||||||
|
posted: Postato
|
||||||
|
updated: Aggiornato
|
||||||
|
words: parole
|
||||||
|
pageview_measure: visioni
|
||||||
|
read_time:
|
||||||
|
unit: min
|
||||||
|
prompt: lettura
|
||||||
|
relate_posts: Continua a leggere
|
||||||
|
share: Condividi
|
||||||
|
button:
|
||||||
|
next: Più recenti
|
||||||
|
previous: Meno recenti
|
||||||
|
copy_code:
|
||||||
|
succeed: Copiato!
|
||||||
|
share_link:
|
||||||
|
title: Copia link
|
||||||
|
succeed: Link copiato con successo!
|
||||||
|
# pinned prompt of posts list on homepage
|
||||||
|
pin_prompt: In alto
|
||||||
|
|
||||||
|
# Date time format.
|
||||||
|
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
||||||
|
df:
|
||||||
|
post:
|
||||||
|
strftime: '%b %e, %Y'
|
||||||
|
dayjs: 'll'
|
||||||
|
archives:
|
||||||
|
strftime: '%b'
|
||||||
|
dayjs: 'MMM'
|
||||||
|
|
||||||
|
# categories page
|
||||||
|
categories:
|
||||||
|
category_measure:
|
||||||
|
singular: categoria
|
||||||
|
plural: categorie
|
||||||
|
post_measure:
|
||||||
|
singular: post
|
||||||
|
plural: posts
|
|
@ -6,6 +6,7 @@
|
||||||
<span class="share-label text-muted mr-1">{{ site.data.locales[site.lang].post.share }}</span>
|
<span class="share-label text-muted mr-1">{{ site.data.locales[site.lang].post.share }}</span>
|
||||||
<span class="share-icons">
|
<span class="share-icons">
|
||||||
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
||||||
|
{% assign title = title | uri_escape %}
|
||||||
{% assign url = page.url | absolute_url | url_encode %}
|
{% assign url = page.url | absolute_url | url_encode %}
|
||||||
|
|
||||||
{% for share in site.data.share.platforms %}
|
{% for share in site.data.share.platforms %}
|
||||||
|
|
|
@ -277,54 +277,6 @@
|
||||||
|
|
||||||
{% assign _content = _heading_content %}
|
{% assign _content = _heading_content %}
|
||||||
|
|
||||||
<!-- Wrap prompt element of blockquote with the <div> tag -->
|
|
||||||
|
|
||||||
{% assign blockquote_start = '<blockquote class=' %}
|
|
||||||
{% assign blockquote_end = '</blockquote>' %}
|
|
||||||
{% assign cls_prefix = 'prompt-' %}
|
|
||||||
|
|
||||||
{% if _content contains blockquote_start %}
|
|
||||||
|
|
||||||
{% assign _prompt_content = nil %}
|
|
||||||
{% assign _prompt_snippets = _content | split: blockquote_start %}
|
|
||||||
|
|
||||||
{% for _snippet in _prompt_snippets %}
|
|
||||||
|
|
||||||
{% if forloop.first %}
|
|
||||||
{% assign _prompt_content = _snippet %}
|
|
||||||
{% continue %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% assign left = _snippet | split: blockquote_end | first %}
|
|
||||||
{% assign right = _snippet | slice: left.size, _snippet.size %}
|
|
||||||
|
|
||||||
{% assign cls_str = left | split: '>' | first %}
|
|
||||||
{% assign cls_array = cls_str | remove: '"' | split: ' ' %}
|
|
||||||
{% assign is_prompt = false %}
|
|
||||||
|
|
||||||
{% for cls in cls_array %}
|
|
||||||
{% if cls contains cls_prefix %}
|
|
||||||
{% assign is_prompt = true %}
|
|
||||||
{% break %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% unless is_prompt %}
|
|
||||||
{% assign _prompt_content = _prompt_content | append: blockquote_start | append: _snippet %}
|
|
||||||
{% continue %}
|
|
||||||
{% endunless %}
|
|
||||||
|
|
||||||
{% assign left = left | slice: cls_str.size, left.size %}
|
|
||||||
{% assign left = cls_str | append: '><div' | append: left | append: '</div>' %}
|
|
||||||
|
|
||||||
{% assign _prompt_content = _prompt_content | append: blockquote_start | append: left | append: right %}
|
|
||||||
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% assign _content = _prompt_content %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- return -->
|
<!-- return -->
|
||||||
|
|
||||||
{{ _content }}
|
{{ _content }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -246,7 +246,7 @@ The output will be:
|
||||||
|
|
||||||
### Preview Image
|
### Preview Image
|
||||||
|
|
||||||
If you want to add an image at the top of the article, please provide an image with a resolution of `1200 x 630`. Please note that if the image aspect ratio does not meet `1.91 : 1`, the image will be scaled and cropped.
|
If you want to add an image at the top of the post, please provide an image with a resolution of `1200 x 630`. Please note that if the image aspect ratio does not meet `1.91 : 1`, the image will be scaled and cropped.
|
||||||
|
|
||||||
Knowing these prerequisites, you can start setting the image's attribute:
|
Knowing these prerequisites, you can start setting the image's attribute:
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ image:
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
Starting from _Chirpy v5.0.0_, the attributes `height` and `width` can be abbreviated: `height` → `h`, `width` → `w`. In addition, the [`img_path`](#image-path) can also be passed to the preview image, that is, when it has been set, the attribute `path` only needs the image file name.
|
Note that the [`img_path`](#image-path) can also be passed to the preview image, that is, when it has been set, the attribute `path` only needs the image file name.
|
||||||
|
|
||||||
For simple use, you can also just use `image` to define the path.
|
For simple use, you can also just use `image` to define the path.
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ Create a new repository from the [**Chirpy Starter**][use-starter] and name it `
|
||||||
And then execute:
|
And then execute:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ bash tools/init.sh
|
$ bash tools/init
|
||||||
```
|
```
|
||||||
|
|
||||||
> If you don't want to deploy your site on GitHub Pages, append option `--no-gh` at the end of the above command.
|
> If you don't want to deploy your site on GitHub Pages, append option `--no-gh` at the end of the above command.
|
||||||
|
@ -43,9 +43,7 @@ The above command will:
|
||||||
|
|
||||||
2. If the option `--no-gh` is provided, the directory `.github`{: .filepath} will be deleted. Otherwise, set up the GitHub Action workflow by removing the extension `.hook`{: .filepath} of `.github/workflows/pages-deploy.yml.hook`{: .filepath}, and then remove the other files and directories in the folder `.github`{: .filepath}.
|
2. If the option `--no-gh` is provided, the directory `.github`{: .filepath} will be deleted. Otherwise, set up the GitHub Action workflow by removing the extension `.hook`{: .filepath} of `.github/workflows/pages-deploy.yml.hook`{: .filepath}, and then remove the other files and directories in the folder `.github`{: .filepath}.
|
||||||
|
|
||||||
3. Remove item `Gemfile.lock` from `.gitignore`{: .filepath}.
|
3. Create a new commit to save the changes automatically.
|
||||||
|
|
||||||
4. Create a new commit to save the changes automatically.
|
|
||||||
|
|
||||||
### Installing Dependencies
|
### Installing Dependencies
|
||||||
|
|
||||||
|
@ -68,9 +66,9 @@ Update the variables of `_config.yml`{: .filepath} as needed. Some of them are t
|
||||||
|
|
||||||
### Customizing Stylesheet
|
### Customizing Stylesheet
|
||||||
|
|
||||||
If you need to customize the stylesheet, copy the theme's `assets/css/style.scss`{: .filepath} to the same path on your Jekyll site, and then add the custom style at the end of the style file.
|
If you need to customize the stylesheet, copy the theme's `assets/css/style.scss`{: .filepath} to the same path on your Jekyll site, and then add the custom style at the end of it.
|
||||||
|
|
||||||
Starting from [`v4.1.0`][chirpy-4.1.0], if you want to overwrite the SASS variables defined in `_sass/addon/variables.scss`{: .filepath}, create a new file `_sass/variables-hook.scss`{: .filepath} and assign new values to the target variable in it.
|
Starting with version `4.1.0`, if you want to overwrite the SASS variables defined in `_sass/addon/variables.scss`{: .filepath}, copy the main sass file `_sass/jekyll-theme-chirpy.scss`{: .filepath} into the `_sass`{: .filepath} directory in your site's source, then create a new file `_sass/variables-hook.scss`{: .filepath} and assign new value.
|
||||||
|
|
||||||
### Customing Static Assets
|
### Customing Static Assets
|
||||||
|
|
||||||
|
@ -169,6 +167,5 @@ The merge is likely to conflict with your local modifications. Please be patient
|
||||||
[starter]: https://github.com/cotes2020/chirpy-starter
|
[starter]: https://github.com/cotes2020/chirpy-starter
|
||||||
[use-starter]: https://github.com/cotes2020/chirpy-starter/generate
|
[use-starter]: https://github.com/cotes2020/chirpy-starter/generate
|
||||||
[workflow]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/workflows/pages-deploy.yml.hook
|
[workflow]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/workflows/pages-deploy.yml.hook
|
||||||
[chirpy-4.1.0]: https://github.com/cotes2020/jekyll-theme-chirpy/releases/tag/v4.1.0
|
|
||||||
[pages-workflow-src]: https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow
|
[pages-workflow-src]: https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow
|
||||||
[latest-tag]: https://github.com/cotes2020/jekyll-theme-chirpy/tags
|
[latest-tag]: https://github.com/cotes2020/jekyll-theme-chirpy/tags
|
||||||
|
|
|
@ -86,7 +86,6 @@ img {
|
||||||
|
|
||||||
&[data-src] {
|
&[data-src] {
|
||||||
&.lazyloaded {
|
&.lazyloaded {
|
||||||
z-index: 1;
|
|
||||||
-webkit-animation: fade-in 0.4s ease-in;
|
-webkit-animation: fade-in 0.4s ease-in;
|
||||||
animation: fade-in 0.4s ease-in;
|
animation: fade-in 0.4s ease-in;
|
||||||
}
|
}
|
||||||
|
@ -132,9 +131,8 @@ blockquote {
|
||||||
color: var(--blockquote-text-color);
|
color: var(--blockquote-text-color);
|
||||||
|
|
||||||
&[class^="prompt-"] {
|
&[class^="prompt-"] {
|
||||||
display: flex;
|
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
padding: 1rem;
|
padding: 1rem 1rem 1rem 3rem;
|
||||||
color: var(--prompt-text-color);
|
color: var(--prompt-text-color);
|
||||||
|
|
||||||
@extend %rounded;
|
@extend %rounded;
|
||||||
|
@ -142,19 +140,15 @@ blockquote {
|
||||||
&::before {
|
&::before {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 1.25rem;
|
width: 1.25rem;
|
||||||
margin-right: 0.75rem;
|
position: absolute;
|
||||||
position: relative;
|
left: 2.5rem;
|
||||||
top: 0.4rem;
|
margin-top: 0.4rem;
|
||||||
text-rendering: auto;
|
text-rendering: auto;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
> div {
|
> p:last-child {
|
||||||
max-width: calc(100% - 2rem);
|
margin-bottom: 0;
|
||||||
|
|
||||||
> :last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -842,7 +836,7 @@ $sidebar-display: "sidebar-display";
|
||||||
|
|
||||||
@for $i from 1 through $tab-count {
|
@for $i from 1 through $tab-count {
|
||||||
$offset: $tab-count - $i;
|
$offset: $tab-count - $i;
|
||||||
$top: -$offset * $tab-height + calc(($tab-height - $tab-cursor-height) / 2);
|
$top: (-$offset * $tab-height) + (($tab-height - $tab-cursor-height) * 0.5);
|
||||||
|
|
||||||
@if $i < $tab-count {
|
@if $i < $tab-count {
|
||||||
> li.active:nth-child(#{$i}),
|
> li.active:nth-child(#{$i}),
|
||||||
|
@ -1280,11 +1274,14 @@ $sidebar-display: "sidebar-display";
|
||||||
|
|
||||||
.post-content {
|
.post-content {
|
||||||
> blockquote[class^="prompt-"] {
|
> blockquote[class^="prompt-"] {
|
||||||
@include pl-pr(1.25rem);
|
|
||||||
@include ml-mr(-1.25rem);
|
@include ml-mr(-1.25rem);
|
||||||
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
left: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,13 @@ html {
|
||||||
font-size: $code-font-size;
|
font-size: $code-font-size;
|
||||||
line-height: 1.4rem;
|
line-height: 1.4rem;
|
||||||
word-wrap: normal; /* Fixed Safari overflow-x */
|
word-wrap: normal; /* Fixed Safari overflow-x */
|
||||||
|
|
||||||
|
/* set the dollar sign to non-selectable */
|
||||||
|
>.gp:first-child {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
|
@ -85,13 +92,6 @@ html {
|
||||||
-o-user-select: none;
|
-o-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set the dollar sign to non-selectable */
|
|
||||||
.gp {
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
} /* .highlight */
|
} /* .highlight */
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*!
|
/*!
|
||||||
* The styles for Jekyll theme Chirpy
|
* The styles for Jekyll theme Chirpy
|
||||||
*
|
*
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
2
assets/js/dist/categories.min.js
vendored
2
assets/js/dist/categories.min.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
2
assets/js/dist/commons.min.js
vendored
2
assets/js/dist/commons.min.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
2
assets/js/dist/home.min.js
vendored
2
assets/js/dist/home.min.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
2
assets/js/dist/misc.min.js
vendored
2
assets/js/dist/misc.min.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
2
assets/js/dist/page.min.js
vendored
2
assets/js/dist/page.min.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
2
assets/js/dist/post.min.js
vendored
2
assets/js/dist/post.min.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
2
assets/js/dist/pvreport.min.js
vendored
2
assets/js/dist/pvreport.min.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
* Chirpy v5.5.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
|
||||||
* © 2019 Cotes Chung
|
* © 2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = "jekyll-theme-chirpy"
|
spec.name = "jekyll-theme-chirpy"
|
||||||
spec.version = "5.4.0"
|
spec.version = "5.5.0"
|
||||||
spec.authors = ["Cotes Chung"]
|
spec.authors = ["Cotes Chung"]
|
||||||
spec.email = ["cotes.chung@gmail.com"]
|
spec.email = ["cotes.chung@gmail.com"]
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
||||||
"plugin_type" => "theme"
|
"plugin_type" => "theme"
|
||||||
}
|
}
|
||||||
|
|
||||||
spec.required_ruby_version = [">= 2.5", "< 3.2"]
|
spec.required_ruby_version = ">= 2.6"
|
||||||
|
|
||||||
spec.add_runtime_dependency "jekyll", "~> 4.3"
|
spec.add_runtime_dependency "jekyll", "~> 4.3"
|
||||||
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
|
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jekyll-theme-chirpy",
|
"name": "jekyll-theme-chirpy",
|
||||||
"version": "5.4.0",
|
"version": "5.5.0",
|
||||||
"description": "A minimal, responsive, and powerful Jekyll theme for presenting professional writing.",
|
"description": "A minimal, responsive, and powerful Jekyll theme for presenting professional writing.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -66,10 +66,6 @@ init_files() {
|
||||||
rm -f _config.yml.$TEMP_SUFFIX
|
rm -f _config.yml.$TEMP_SUFFIX
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# trace the gem lockfile on user-end
|
|
||||||
sed -i.$TEMP_SUFFIX "/Gemfile.lock/d" .gitignore
|
|
||||||
rm -f ".gitignore.$TEMP_SUFFIX"
|
|
||||||
|
|
||||||
# remove the other fies
|
# remove the other fies
|
||||||
rm -rf _posts/*
|
rm -rf _posts/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue