From b0329775fc24d0323e5cc04cda46ece8b4531802 Mon Sep 17 00:00:00 2001 From: Bence Boros <39780892+borosbence@users.noreply.github.com> Date: Fri, 10 Jun 2022 16:49:17 +0200 Subject: [PATCH 01/24] feat(i18n): add Hungarian locale file (#597, #598) --- _data/locales/hu-HU.yml | 81 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 _data/locales/hu-HU.yml diff --git a/_data/locales/hu-HU.yml b/_data/locales/hu-HU.yml new file mode 100644 index 0000000..395a809 --- /dev/null +++ b/_data/locales/hu-HU.yml @@ -0,0 +1,81 @@ +# The layout text of site + +# ----- Commons label ----- + +layout: + post: Bejegyzés + category: Kategória + tag: Címke + +# The tabs of sidebar +tabs: + # format: : + home: Kezdőlap + categories: Kategóriák + tags: Címkék + archives: Archívum + about: Rólam + +# the text displayed in the search bar & search results +search: + hint: keresés + cancel: Mégse + no_results: Oops! Nincs találat a keresésre. + +panel: + lastmod: Legutóbb frissítve + trending_tags: Népszerű Címkék + toc: Tartalom + links: Blog linkek + +copyright: + # Shown at the bottom of the post + license: + template: A bejegyzés :LICENSE_NAME licenccel rendelkezik. + name: CC BY 4.0 + link: https://creativecommons.org/licenses/by/4.0/ + + # Displayed in the footer + brief: Néhány jog fenntartva. + verbose: >- + Az oldalon található tartalmak + Creative Commons Attribution 4.0 International (CC BY 4.0) licenccel rendelkeznek, + hacsak másképp nincs jelezve. + +meta: Készítve :PLATFORM motorral :THEME témával. + +not_found: + statment: 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: Frissítés + +# ----- Posts related labels ----- + +post: + written_by: Szerző + posted: Létrehozva + updated: Frissítve + words: szó + pageview_measure: látogató + read_time: + unit: perc + prompt: elolvasni + relate_posts: További olvasnivaló + share: Megosztás + button: + next: Újabb + previous: Régebbi + copy_code: + succeed: Másolva! + share_link: + title: Link másolása + succeed: Link sikeresen másolva! + # pinned prompt of posts list on homepage + pin_prompt: Kitűzve + +# categories page +categories: + category_measure: kategória + post_measure: bejegyzés From 2fed338ce6d078bf528c9717201fbc475f88cd22 Mon Sep 17 00:00:00 2001 From: MrEddX <66828538+MrEddX@users.noreply.github.com> Date: Sat, 18 Jun 2022 19:09:18 +0300 Subject: [PATCH 02/24] feat(i18n): add Bulgarian support (#612) --- _data/locales/bg-BG.yml | 83 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 _data/locales/bg-BG.yml diff --git a/_data/locales/bg-BG.yml b/_data/locales/bg-BG.yml new file mode 100644 index 0000000..fe601bb --- /dev/null +++ b/_data/locales/bg-BG.yml @@ -0,0 +1,83 @@ +# The layout text of site + +# ----- Commons label ----- + +layout: + post: Публикация + category: Категория + tag: Тагове + +# The tabs of sidebar +tabs: + # format: : + 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 (CC BY 4.0) от автора. + +meta: Създадено чрез :PLATFORM и :THEME тема. + +not_found: + statment: Съжалявам, но този на този URL адрес няма налично съдържание. + +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: Прикрепен + +# categories page +categories: + category_measure: + singular: категория + plural: категории + post_measure: + singular: публикация + plural: публикации From 378b65a0617787813519dde74d6f741f255eff3d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 2 Jul 2022 00:22:07 +0800 Subject: [PATCH 03/24] =?UTF-8?q?fix:=20the=20`code`=20doesn=E2=80=99t=20w?= =?UTF-8?q?rap=20inside=20the=20prompt=20(#626)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #626 --- _sass/addon/syntax.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/_sass/addon/syntax.scss b/_sass/addon/syntax.scss index d899d0b..cd861b3 100644 --- a/_sass/addon/syntax.scss +++ b/_sass/addon/syntax.scss @@ -110,6 +110,7 @@ code { &.highlighter-rouge { font-size: $code-font-size; padding: 3px 5px; + word-break: break-word; border-radius: 4px; background-color: var(--inline-code-bg); } From 5eb329f36c3d61577d0de5c61d15d52cde2843b1 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 2 Jul 2022 18:05:03 +0800 Subject: [PATCH 04/24] chore: center align preview image caption (#633) Resolve #633 --- _layouts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index b2f92d1..133c712 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -50,7 +50,7 @@ tail_includes: {% endif %}> {% if page.image.alt %} -
{{ page.image.alt }}
+
{{ page.image.alt }}
{% endif %} From 20b7fe3a53c5095824e3addd397119973269bf1d Mon Sep 17 00:00:00 2001 From: Josh Johanning Date: Sat, 2 Jul 2022 05:16:02 -0500 Subject: [PATCH 05/24] docs: adding a note about preview images and `v5.2.0` (#632) --- _posts/2019-08-08-write-a-new-post.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md index 3e9d141..d40c3eb 100644 --- a/_posts/2019-08-08-write-a-new-post.md +++ b/_posts/2019-08-08-write-a-new-post.md @@ -248,6 +248,8 @@ Except for `alt`, all other options are necessary, especially the `width` and `h 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. +Starting from _Chirpy v5.2.0_, the property for the preview image is changed to `image.path`. If upgrading the theme from a prior version, you will have to update posts' metadata to use new image property. + ## Pinned Posts You can pin one or more posts to the top of the home page, and the fixed posts are sorted in reverse order according to their release date. Enable by: From ad137fa2945b1870b9c1dd5e9212a5f4af7c3580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCz=C3=BCnl=C3=BC=20Artemis=20=5BHuzunluArtemis=5D?= <84624971+HuzunluArtemis@users.noreply.github.com> Date: Sat, 2 Jul 2022 13:23:24 +0300 Subject: [PATCH 06/24] feat(i18n): add Turkish language (#631) --- _data/locales/tr-TR.yml | 79 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 _data/locales/tr-TR.yml diff --git a/_data/locales/tr-TR.yml b/_data/locales/tr-TR.yml new file mode 100644 index 0000000..f7c2567 --- /dev/null +++ b/_data/locales/tr-TR.yml @@ -0,0 +1,79 @@ +# The layout text of site + +# ----- Commons label ----- + +layout: + post: Gönderi + category: Kategori + tag: Etiket + +# The tabs of sidebar +tabs: + # format: : + home: Ana Sayfa + categories: Kategoriler + tags: Etiketler + archives: Arşiv + about: Hakkında + +# the text displayed in the search bar & search results +search: + hint: Ara... + cancel: İptal + no_results: Hop! Öyle bir şey bulamadım. + +panel: + lastmod: Yeni Güncellendi + trending_tags: Yükselen Etiketler + toc: İçindekiler + +copyright: + # Shown at the bottom of the post + license: + template: Bu gönderi :LICENSE_NAME lisansı altındadır. + name: CC BY 4.0 + link: https://creativecommons.org/licenses/by/4.0/deed.tr + + # Displayed in the footer + brief: Bazı hakları saklıdır. + verbose: >- + Aksi belirtilmediği sürece, bu sitedeki gönderiler Creative Commons Atıf 4.0 Uluslararası (CC BY 4.0) Lisansı altındadır. + Kısaca sayfa linkini de vererek paylaşabilir veya düzenleyip paylaşabilirsin. + +meta: :PLATFORM ve :THEME teması. + +not_found: + statment: Ü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: Güncelle + +# ----- Posts related labels ----- + +post: + written_by: Yazan + posted: Gönderilme Tarihi + updated: Güncellenme Tarihi + words: sözcük + pageview_measure: görüntülenme + read_time: + unit: dakikada + prompt: okunabilir + relate_posts: Benzer Gönderiler + share: Paylaş + button: + next: İleri + previous: Geri + copy_code: + succeed: Kopyalandı. + share_link: + title: Linki kopyala + succeed: Link kopyalandı. + # pinned prompt of posts list on homepage + pin_prompt: Sabitlendi + +# categories page +categories: + category_measure: kategori + post_measure: gönderi From 3fa1bf305451f645a7f3aa93863b076463c8f165 Mon Sep 17 00:00:00 2001 From: Nihil <1009978366@qq.com> Date: Sat, 23 Jul 2022 19:10:20 +0800 Subject: [PATCH 07/24] fix: code contains spaces in headings (#644) --- _includes/refactor-content.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html index 83329b3..6cfbc1b 100644 --- a/_includes/refactor-content.html +++ b/_includes/refactor-content.html @@ -214,7 +214,7 @@ {% assign left = snippet | split: mark_end | first %} {% assign right = snippet | slice: left.size, snippet.size %} - {% assign left = left | replace: '">', '">' | append: '' %} + {% assign left = left | replace_first: '">', '">' | append: '' %} {% assign _new_content = _new_content | append: mark_start | append: left | append: anchor | append: right From 22d4275f75572e6b804778c01d75ca16b7b47d92 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 3 Aug 2022 18:47:42 +0800 Subject: [PATCH 08/24] refactor: optimize the layout of archive timeline --- _layouts/archives.html | 51 ++++++++---------- _sass/layout/archives.scss | 104 ++++++++++++++++++------------------- 2 files changed, 73 insertions(+), 82 deletions(-) diff --git a/_layouts/archives.html b/_layouts/archives.html index f70b0d7..7344042 100644 --- a/_layouts/archives.html +++ b/_layouts/archives.html @@ -13,36 +13,29 @@ layout: page {% assign df_dayjs_m = '/ MM' %} {% endif %} -
+
+ {% for post in site.posts %} - {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} - {% capture pre_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} - {% if forloop.first %} - {% assign last_day = "" %} - {% assign last_month = "" %} - {{this_year}} -
    - {% endif %} -
  • -
    - {% assign ts = post.date | date: '%s' %} - - {{ post.date | date: "%d" }} - - - {{ post.date | date: df_strftime_m }} - - {{ post.title }} -
    -
  • - {% if forloop.last %} -
- {% elsif this_year != pre_year %} - - {{pre_year}} -
    - {% assign last_day = "" %} - {% assign last_month = "" %} + {% capture cur_year %}{{ post.date | date: "%Y" }}{% endcapture %} + + {% if cur_year != last_year %} + {% unless forloop.first %}
{% endunless %} +
{{ cur_year }}
+
    + {% assign last_year = cur_year %} {% endif %} + +
  • + {% assign ts = post.date | date: '%s' %} + {{ post.date | date: "%d" }} + + {{ post.date | date: df_strftime_m }} + + {{ post.title }} +
  • + + {% if forloop.last %}
{% endif %} + {% endfor %} +
diff --git a/_sass/layout/archives.scss b/_sass/layout/archives.scss index 9df652f..c0115e0 100644 --- a/_sass/layout/archives.scss +++ b/_sass/layout/archives.scss @@ -2,35 +2,49 @@ Style for Archives */ -%date-timeline { - content: ""; - width: 4px; - left: 75px; - display: inline-block; - float: left; - position: relative; - background-color: var(--timeline-color); -} - #archives { letter-spacing: 0.03rem; - span.lead { - font-size: 1.5rem; + $timeline-width: 4px; + + %timeline { + content: ""; + width: $timeline-width; position: relative; - left: 8px; + float: left; + background-color: var(--timeline-color); + } + + .year { + height: 3.5rem; + font-size: 1.5rem; + margin-left: -$timeline-width; + + &::before { + @extend %timeline; + + height: 72px; + left: 72px; + bottom: 16px; + } + + &:first-child::before { + @extend %timeline; + + height: 32px; + top: 24px; + } &::after { /* Year dot */ content: ""; - display: block; + display: inline-block; position: relative; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; width: 12px; height: 12px; - top: -26px; - left: 63px; + left: 14.5px; border: 3px solid; background-color: var(--timeline-year-dot-color); border-color: var(--timeline-node-bg); @@ -38,32 +52,24 @@ z-index: 1; } - &:not(:first-child) { - position: relative; - left: 4px; - - &::after { - left: 67px; - } - } - - } // #archives span.lead + } ul { li { font-size: 1.1rem; line-height: 3rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; - div { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + a { + /* post title in Archvies */ + margin-left: 2.5rem; + position: relative; + top: 0.1rem; - a { - /* post title in Archvies */ - margin-left: 2.5rem; - position: relative; - top: 0.1rem; + &:hover { + border-bottom: none; } } @@ -72,29 +78,21 @@ background-image: linear-gradient(to left, #fff, #fbfbfb, #fbfbfb, #fbfbfb, #fff); } - &::after { - @extend %date-timeline; + &::before { + @extend %timeline; - height: 2.8rem; - top: -1.3rem; - } - - &:first-child::before { - @extend %date-timeline; - - height: 3.06rem; - top: -1.61rem; + top: 0; + left: 68px; + height: 3rem; } } - &:not(:last-child) > li:last-child::after { - height: 3.4rem; + &:last-child li:last-child::before { + height: 1.5rem; + top: -12px; } - &:last-child > li:last-child::after { - display: none; - } - } // #archives ul + } /* #archives ul */ .date { white-space: nowrap; @@ -116,7 +114,7 @@ height: 8px; float: left; top: 1.35rem; - left: 69px; + right: 21.5px; background-color: var(--timeline-node-bg); box-shadow: 0 0 3px 0 #c2c6cc; z-index: 1; From d792a2f6afdbc87b7b09530ef7dc48ee06617dea Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 8 Aug 2022 20:56:38 +0800 Subject: [PATCH 09/24] chore: improve responsive design of archive entries --- _layouts/archives.html | 2 +- _sass/layout/archives.scss | 79 +++++++++++++++++++------------------- 2 files changed, 40 insertions(+), 41 deletions(-) diff --git a/_layouts/archives.html b/_layouts/archives.html index 7344042..61ad91d 100644 --- a/_layouts/archives.html +++ b/_layouts/archives.html @@ -25,7 +25,7 @@ layout: page {% assign last_year = cur_year %} {% endif %} -
  • +
  • {% assign ts = post.date | date: '%s' %} {{ post.date | date: "%d" }} diff --git a/_sass/layout/archives.scss b/_sass/layout/archives.scss index c0115e0..50d6dc7 100644 --- a/_sass/layout/archives.scss +++ b/_sass/layout/archives.scss @@ -18,13 +18,15 @@ .year { height: 3.5rem; font-size: 1.5rem; + position: relative; + left: 2px; margin-left: -$timeline-width; &::before { @extend %timeline; height: 72px; - left: 72px; + left: 79px; bottom: 16px; } @@ -44,7 +46,7 @@ border-radius: 50%; width: 12px; height: 12px; - left: 14.5px; + left: 21.5px; border: 3px solid; background-color: var(--timeline-year-dot-color); border-color: var(--timeline-node-bg); @@ -62,17 +64,6 @@ overflow: hidden; text-overflow: ellipsis; - a { - /* post title in Archvies */ - margin-left: 2.5rem; - position: relative; - top: 0.1rem; - - &:hover { - border-bottom: none; - } - } - &:nth-child(odd) { background-color: var(--main-wrapper-bg, #fff); background-image: linear-gradient(to left, #fff, #fbfbfb, #fbfbfb, #fbfbfb, #fff); @@ -82,14 +73,13 @@ @extend %timeline; top: 0; - left: 68px; - height: 3rem; + left: 77px; + height: 3.1rem; } } &:last-child li:last-child::before { height: 1.5rem; - top: -12px; } } /* #archives ul */ @@ -97,40 +87,49 @@ .date { white-space: nowrap; display: inline-block; + position: relative; + right: 0.5rem; &.month { width: 1.4rem; text-align: center; - - ~ a::before { - /* A dot for Month and Day */ - content: ""; - display: inline-block; - position: relative; - -webkit-border-radius: 50%; - -moz-border-radius: 50%; - border-radius: 50%; - width: 8px; - height: 8px; - float: left; - top: 1.35rem; - right: 21.5px; - background-color: var(--timeline-node-bg); - box-shadow: 0 0 3px 0 #c2c6cc; - z-index: 1; - } } &.day { font-size: 85%; font-family: 'Lato', sans-serif; - text-align: center; - margin-right: -2px; - width: 1.2rem; - position: relative; - left: -0.15rem; + } - } // #archives .date + } + + a { + /* post title in Archvies */ + margin-left: 2.5rem; + position: relative; + top: 0.1rem; + + &:hover { + border-bottom: none; + } + + &::before { + /* the dot before post title */ + content: ""; + display: inline-block; + position: relative; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + border-radius: 50%; + width: 8px; + height: 8px; + float: left; + top: 1.35rem; + left: 71px; + background-color: var(--timeline-node-bg); + box-shadow: 0 0 3px 0 #c2c6cc; + z-index: 1; + } + } } // #archives From b405a58838c21ae20a1dd21d47367d7764b035ba Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 8 Aug 2022 22:03:25 +0800 Subject: [PATCH 10/24] refactor: make sure there is space at the bottom of core block --- _includes/post-paginator.html | 2 +- _includes/related-posts.html | 4 ++-- _layouts/page.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/post-paginator.html b/_includes/post-paginator.html index 162039e..b79c4f8 100644 --- a/_includes/post-paginator.html +++ b/_includes/post-paginator.html @@ -2,7 +2,7 @@ The paginator for post list on HomgPage. --> -
      +
        {% if paginator.previous_page %} {% assign prev_url = paginator.previous_page_path | relative_url %} diff --git a/_includes/related-posts.html b/_includes/related-posts.html index a673b19..dd925ae 100644 --- a/_includes/related-posts.html +++ b/_includes/related-posts.html @@ -76,8 +76,8 @@ {% endif %} {% if index_list.size > 0 %} -