From 5d9b7aa77ac9d509e6b5ec21f1f3ea016ae6339c Mon Sep 17 00:00:00 2001 From: Gaurav Gaur Date: Mon, 30 Jan 2023 10:26:35 +0000 Subject: [PATCH] parent 6c35647cc0dbec4b5e538624c788bf697bef7483 author Gaurav Gaur 1675074395 +0000 committer Gaurav Gaur 1675445316 +0000 parent 6c35647cc0dbec4b5e538624c788bf697bef7483 author Gaurav Gaur 1675074395 +0000 committer Gaurav Gaur 1675445269 +0000 parent 6c35647cc0dbec4b5e538624c788bf697bef7483 author Gaurav Gaur 1675074395 +0000 committer Gaurav Gaur 1675445201 +0000 parent 6c35647cc0dbec4b5e538624c788bf697bef7483 author Gaurav Gaur 1675074395 +0000 committer Gaurav Gaur 1675445170 +0000 parent 6c35647cc0dbec4b5e538624c788bf697bef7483 author Gaurav Gaur 1675074395 +0000 committer Gaurav Gaur 1675445041 +0000 progress with pipes and filters pattern feat: add shimmer background when image loads feat: set preview image ratio to 1.91 : 1 fix: `og:image` will be incorrect if the image uses a cross-domain URL feat: support dark and light mode images (#481) refactor: unify the border radius of blocks scope: code blocks, prompts, images, and videos feat: add `rel="me"` to Mastodon sidebar contact links for verification (#807) This will enable verification with Mastodon by including the `rel="me"` attribute. https://docs.joinmastodon.org/user/profile/#verification Co-authored-by: Cotes Chung <11371340+cotes2020@users.noreply.github.com> chore: hide blur edge of LQIP images chore(tools): checkout latest tag on initialization chore(editorconfig): keep trailing spaces in Markdown (#830) feat(i18n): add Czech language (#833) fix: correct encoding of spaces in share URLs (#835) Resolves #835 fix: post's image would cover the PWA update alert feat(i18n): add Finnish translations (#843) chore(bundler): deprecate `:install_if` option in Gemfile feat(i18n): add Italian translation (#850) fix: copy command line incomplete(`.gp` part) feat(i18n): add Arabic translation (#857) chore(deps): liquid(v4.0.4) is compatible with ruby 3.2 (#854) See: https://github.com/jekyll/jekyll/issues/9231 chore: ignore gem lock file in user-end refactor: optimize tab cursor position calculation fix: prompt with nested blockquotes renders incorrectly (#846) Resolves #846 chore(release): 5.5.0 fix: the icon position of the prompts in the list is incorrect chore(release): 5.5.1 --- .github/workflows/pages-deploy.yml | 2 +- _data/locales/ar.yml | 93 +++++++++++++++++++ _includes/refactor-content.html | 48 ---------- _javascript/copyright | 2 +- _layouts/post.html | 2 +- .../2023-01-28-pipes-and-filters-pattern.md | 35 ++++++- _sass/addon/commons.scss | 23 ++--- _sass/jekyll-theme-chirpy.scss | 2 +- assets/js/dist/categories.min.js | 2 +- assets/js/dist/commons.min.js | 2 +- assets/js/dist/home.min.js | 2 +- assets/js/dist/misc.min.js | 2 +- assets/js/dist/page.min.js | 2 +- assets/js/dist/post.min.js | 2 +- assets/js/dist/pvreport.min.js | 2 +- jekyll-theme-chirpy.gemspec | 4 +- package.json | 2 +- tools/init | 4 - 18 files changed, 148 insertions(+), 83 deletions(-) create mode 100644 _data/locales/ar.yml diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index fed62a9058e..356d42a3dae 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -42,7 +42,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 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 - name: Build site diff --git a/_data/locales/ar.yml b/_data/locales/ar.yml new file mode 100644 index 00000000000..7f1725f6999 --- /dev/null +++ b/_data/locales/ar.yml @@ -0,0 +1,93 @@ +# 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 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: , +df: + post: + strftime: '%b %e, %Y' + dayjs: 'll' + archives: + strftime: '%b' + dayjs: 'MMM' + +# categories page +categories: + category_measure: + singular: فئة + plural: فئات + post_measure: + singular: منشور + plural: منشورات diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html index e98b9911b12..3a6f943a3b3 100644 --- a/_includes/refactor-content.html +++ b/_includes/refactor-content.html @@ -277,54 +277,6 @@ {% assign _content = _heading_content %} - - -{% assign blockquote_start = '
' %} -{% 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: '>' %} - - {% assign _prompt_content = _prompt_content | append: blockquote_start | append: left | append: right %} - - {% endfor %} - - {% assign _content = _prompt_content %} - -{% endif %} - {{ _content }} diff --git a/_javascript/copyright b/_javascript/copyright index f63512d4545..922836dd1e3 100644 --- a/_javascript/copyright +++ b/_javascript/copyright @@ -1,5 +1,5 @@ /*! - * Chirpy v5.4.0 (https://github.com/cotes2020/jekyll-theme-chirpy/) + * Chirpy v5.5.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) * © 2019 Cotes Chung * MIT Licensed */ diff --git a/_layouts/post.html b/_layouts/post.html index 1acc3e382c5..d6cd81a2363 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -73,7 +73,7 @@

{{ page.title }}

{% if page.counterlink %} - 1003 + loading