From d1ef8d42739913443a0d1ba4e0c436d31840d2b9 Mon Sep 17 00:00:00 2001 From: Travis-CI Date: Mon, 14 Feb 2022 17:30:02 +0000 Subject: [PATCH] Update critical file(s) according to Chirpy v5.1.0 --- .gitmodules | 3 ++ Gemfile | 2 +- _config.yml | 50 +++++++++++++++------- _data/assets/cross_origin.yml | 62 ++++++++++++++++++++++++++++ _data/assets/self_host.yml | 51 +++++++++++++++++++++++ _data/locales/en.yml | 15 +------ _data/locales/id-ID.yml | 13 ------ _data/locales/ko-KR.yml | 13 ------ _data/locales/my-MM.yml | 78 +++++++++++++++++++++++++++++++++++ _data/locales/ru-RU.yml | 78 +++++++++++++++++++++++++++++++++++ _data/locales/uk-UA.yml | 78 +++++++++++++++++++++++++++++++++++ _data/locales/zh-CN.yml | 13 ------ _data/share.yml | 2 +- _tabs/about.md | 4 +- assets/lib | 1 + 15 files changed, 392 insertions(+), 71 deletions(-) create mode 100644 .gitmodules create mode 100644 _data/assets/cross_origin.yml create mode 100644 _data/assets/self_host.yml create mode 100644 _data/locales/my-MM.yml create mode 100644 _data/locales/ru-RU.yml create mode 100644 _data/locales/uk-UA.yml create mode 160000 assets/lib diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..58062c5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "assets/lib"] + path = assets/lib + url = https://github.com/cotes2020/chirpy-static-assets.git diff --git a/Gemfile b/Gemfile index 2e86f59..362cb64 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "jekyll-theme-chirpy", "~> 5.0", ">= 5.0.2" +gem "jekyll-theme-chirpy", "~> 5.1", ">= 5.1.0" group :test do gem "html-proofer", "~> 3.18" diff --git a/_config.yml b/_config.yml index 0ad2fdd..cfe3c78 100644 --- a/_config.yml +++ b/_config.yml @@ -12,8 +12,11 @@ baseurl: '' # otherwise, the layout language will use the default value of 'en'. lang: en +# Additional parameters for datetime localization, optional. › https://github.com/iamkun/dayjs/tree/dev/src/locale +prefer_datetime_locale: + # Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone -timezone: Asia/Shanghai +timezone: # jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md # ↓ -------------------------- @@ -23,9 +26,7 @@ title: Chirpy # the main title tagline: A text-focused Jekyll theme # it will display as the sub-title description: >- # used by seo meta and the atom feed - A minimal, portfolio, sidebar, - bootstrap Jekyll theme with responsive web design - and focuses on text presentation. + A minimal, responsive, and powerful Jekyll theme for presenting professional writing. # fill in the protocol & hostname for your site, e.g., 'https://username.github.io' url: '' @@ -49,13 +50,13 @@ social: # - https://www.facebook.com/username # - https://www.linkedin.com/in/username -google_site_verification: google_meta_tag_verification # change to your verification string +google_site_verification: # fill in to your verification string # ↑ -------------------------- - +# The end of `jekyll-seo-tag` settings google_analytics: - id: '' # fill in your Google Analytics ID + id: # fill in your Google Analytics ID # Google Analytics pageviews report settings pv: proxy_endpoint: # fill in the Google Analytics superProxy endpoint of Google App Engine @@ -96,6 +97,23 @@ comments: utterances: repo: # / issue_term: # < url | pathname | title | ...> + # Giscus options › https://giscus.app + giscus: + repo: # / + repo_id: + category: + category_id: + mapping: # optional, default to 'pathname' + input_position: # optional, default to 'bottom' + lang: # optional, default to the value of `site.lang` + +# Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets +assets: + self_host: + enabled: # boolean, keep empty means false + # specify the Jekyll environment, empty means both + # only works if `assets.self_host.enabled` is 'true' + env: # [development|production] paginate: 10 @@ -118,8 +136,7 @@ collections: sort_by: order defaults: - - - scope: + - scope: path: '' # An empty string here means all files in the project type: posts values: @@ -129,18 +146,24 @@ defaults: # DO NOT modify the following parameter unless you are confident enough # to update the code of all other post links in this project. permalink: /posts/:title/ - - - scope: + - scope: path: _drafts values: comments: false - - - scope: + - scope: path: '' type: tabs # see `site.collections` values: layout: page permalink: /:title/ + - scope: + path: assets/img/favicons + values: + swcache: true + - scope: + path: assets/js/dist + values: + swcache: true sass: style: compressed @@ -158,7 +181,6 @@ exclude: - '*.gem' - '*.gemspec' - tools - - docs - README.md - LICENSE - gulpfile.js diff --git a/_data/assets/cross_origin.yml b/_data/assets/cross_origin.yml new file mode 100644 index 0000000..13e37cf --- /dev/null +++ b/_data/assets/cross_origin.yml @@ -0,0 +1,62 @@ +# CDNs + +cdns: + # Google Fonts + - url: https://fonts.googleapis.com + - url: https://fonts.gstatic.com + args: crossorigin + - url: https://fonts.googleapis.com + # jsDelivr CDN + - url: https://cdn.jsdelivr.net + +# fonts + +webfonts: https://fonts.googleapis.com/css2?family=Lato&family=Source+Sans+Pro:wght@400;600;700;900&display=swap + +# Libraries + +jquery: + js: https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js + +bootstrap: + css: https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css + js: https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.bundle.min.js + +bootstrap-toc: + css: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.css + js: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.js + +fontawesome: + css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.11.2/css/all.min.css + +search: + js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js + +mermaid: + js: https://cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js + +dayjs: + js: + common: https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js + locale: https://cdn.jsdelivr.net/npm/dayjs@1/locale/:LOCALE.min.js + relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.min.js + localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1/plugin/localizedFormat.min.js + +countup: + js: https://cdn.jsdelivr.net/npm/countup.js@1.9.3/dist/countUp.min.js + +magnific-popup: + css: https://cdn.jsdelivr.net/npm/magnific-popup@1/dist/magnific-popup.min.css + js: https://cdn.jsdelivr.net/npm/magnific-popup@1/dist/jquery.magnific-popup.min.js + +lozad: + js: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js + +clipboard: + js: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js + +polyfill: + js: https://polyfill.io/v3/polyfill.min.js?features=es6 + +mathjax: + js: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js diff --git a/_data/assets/self_host.yml b/_data/assets/self_host.yml new file mode 100644 index 0000000..ae5a399 --- /dev/null +++ b/_data/assets/self_host.yml @@ -0,0 +1,51 @@ +# fonts + +webfonts: /assets/lib/fonts/main.css + +# Libraries + +jquery: + js: /assets/lib/jquery-3.6.0/jquery.min.js + +bootstrap: + css: /assets/lib/bootstrap-4.6.1/bootstrap.min.css + js: /assets/lib/bootstrap-4.6.1/bootstrap.bundle.min.js + +bootstrap-toc: + css: /assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css + js: /assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.js + +fontawesome: + css: /assets/lib/fontawesome-free-5.15.4/css/all.min.css + +search: + js: /assets/lib/simple-jekyll-search-1.10.0/simple-jekyll-search.min.js + +mermaid: + js: /assets/lib/mermaid-8.13.10/mermaid.min.js + +dayjs: + js: + common: /assets/lib/dayjs-1.10.7/dayjs.min.js + locale: /assets/lib/dayjs-1.10.7/locale/en.min.js + relativeTime: /assets/lib/dayjs-1.10.7/plugin/relativeTime.min.js + localizedFormat: /assets/lib/dayjs-1.10.7/plugin/localizedFormat.min.js + +countup: + js: /assets/lib/countup.js-1.9.3/countUp.min.js + +magnific-popup: + css: /assets/lib/magnific-popup-1.1.0/magnific-popup.css + js: /assets/lib/magnific-popup-1.1.0/jquery.magnific-popup.min.js + +lozad: + js: /assets/lib/lozad-1.16.0/lozad.min.js + +clipboard: + js: /assets/lib/clipboard-2.0.9/clipboard.min.js + +polyfill: + js: /assets/lib/polyfill-v3-es6/polyfill.min.js + +mathjax: + js: /assets/lib/mathjax-3.2.0/tex-chtml.js diff --git a/_data/locales/en.yml b/_data/locales/en.yml index 93e4d15..1221776 100644 --- a/_data/locales/en.yml +++ b/_data/locales/en.yml @@ -23,18 +23,10 @@ search: no_results: Oops! No result founds. panel: - lastmod: Recent Update + lastmod: Recently Updated trending_tags: Trending Tags toc: Contents -# The liquid date format › http://strftime.net/ -date_format: - tooltip: '%a, %b %e, %Y, %l:%M %p %z' - post: - long: '%b %e, %Y' - short: '%b %e' - archive_month: '%b' - copyright: # Shown at the bottom of the post license: @@ -62,11 +54,6 @@ post: written_by: By posted: Posted updated: Updated - timeago: - day: days ago - hour: hours ago - minute: minutes ago - just_now: just now words: words pageview_measure: views read_time: diff --git a/_data/locales/id-ID.yml b/_data/locales/id-ID.yml index 4693c5e..37ad8ea 100644 --- a/_data/locales/id-ID.yml +++ b/_data/locales/id-ID.yml @@ -27,14 +27,6 @@ panel: trending_tags: Tagar Terpopuler toc: Konten -# The liquid date format › http://strftime.net/ -date_format: - tooltip: "%a, %e %b, %Y, %l:%M %p" - post: - long: "%e %b, %Y" - short: "%e %b" - archive_month: "%b" - copyright: # Shown at the bottom of the post license: @@ -62,11 +54,6 @@ post: written_by: Oleh posted: Diterbitkan updated: Diperbarui - timeago: - day: hari yang lalu - hour: jam yang lalu - minute: menit yang lalu - just_now: baru saja words: kata pageview_measure: dilihat read_time: diff --git a/_data/locales/ko-KR.yml b/_data/locales/ko-KR.yml index 34d48aa..4bfd318 100644 --- a/_data/locales/ko-KR.yml +++ b/_data/locales/ko-KR.yml @@ -27,14 +27,6 @@ panel: trending_tags: 인기 태그 toc: 바로가기 -# The liquid date format › http://strftime.net/ -date_format: - tooltip: '%F, %R %z' - post: - long: '%Y년 %m월 %d일' - short: '%m월 %d일' - archive_month: '%b월' - copyright: # Shown at the bottom of the post license: @@ -62,11 +54,6 @@ post: written_by: By posted: 게시 updated: 업데이트 - timeago: - day: 일 전 - hour: 시간 전 - minute: 분 전 - just_now: 방금 words: 단어 pageview_measure: 조회 read_time: diff --git a/_data/locales/my-MM.yml b/_data/locales/my-MM.yml new file mode 100644 index 0000000..6ad9e28 --- /dev/null +++ b/_data/locales/my-MM.yml @@ -0,0 +1,78 @@ +# 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: Powered by :PLATFORM with :THEME theme. + +not_found: + statment: ဝမ်းနည်းပါသည်၊ ကျွန်ုပ်တို့သည် အဆိုပါ URL ကို မှားယွင်းစွာ နေရာချထားခြင်း သို့မဟုတ် ၎င်းသည် မရှိသောအရာကို ညွှန်ပြနေပါသည်။ + hint_template: ၎င်းကို ထပ်မံရှာဖွေရန် :HEAD_BAK , သို့မဟုတ် :ARCHIVES_PAGE တွင်ရှာပါ။ + head_back: အဓိကစာမျက်နှာသို့ပြန်သွားပါ။ + archives_page: မှတ်တမ်း​တိုက် စာမျက်နှာ။ + +# ----- 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: ကဏ္ဍများ + post_measure: ပို့စ်များ diff --git a/_data/locales/ru-RU.yml b/_data/locales/ru-RU.yml new file mode 100644 index 0000000..1a538fe --- /dev/null +++ b/_data/locales/ru-RU.yml @@ -0,0 +1,78 @@ +# 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: Powered by :PLATFORM with :THEME theme. + +not_found: + statment: Извините, эта ссылка указывает на ресурс который не существует. + hint_template: :HEAD_BAK чтобы снова осуществить поиск, или поищите :ARCHIVES_PAGE. + head_back: Вернитесь на домашнюю страницу + archives_page: архиве + +# ----- 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: категории + post_measure: публикации diff --git a/_data/locales/uk-UA.yml b/_data/locales/uk-UA.yml new file mode 100644 index 0000000..c06faaf --- /dev/null +++ b/_data/locales/uk-UA.yml @@ -0,0 +1,78 @@ +# 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: Powered by :PLATFORM with :THEME theme. + +not_found: + statment: Вибачте, це посилання вказує на ресурс, що не існує. + hint_template: :HEAD_BAK аби здійснити пошук, або пошукайте в :ARCHIVES_PAGE. + head_back: Поверніться на домашню сторінку + archives_page: архіві + +# ----- 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: категорії + post_measure: публікації diff --git a/_data/locales/zh-CN.yml b/_data/locales/zh-CN.yml index 83f2376..880a47e 100644 --- a/_data/locales/zh-CN.yml +++ b/_data/locales/zh-CN.yml @@ -27,14 +27,6 @@ panel: trending_tags: 热门标签 toc: 文章内容 -# The liquid date format › http://strftime.net/ -date_format: - tooltip: '%F, %R %z' - post: - long: '%F' - short: '%m-%d' - archive_month: '%m月' - copyright: # Shown at the bottom of the post license: @@ -61,11 +53,6 @@ post: written_by: 作者 posted: 发表于 updated: 更新于 - timeago: - day: 天前 - hour: 小时前 - minute: 分钟前 - just_now: 刚刚 words: 字 pageview_measure: 次浏览 read_time: diff --git a/_data/share.yml b/_data/share.yml index ecd1b0d..1206f4d 100644 --- a/_data/share.yml +++ b/_data/share.yml @@ -13,7 +13,7 @@ platforms: - type: Telegram icon: "fab fa-telegram" - link: "https://telegram.me/share?text=TITLE&url=URL" + link: "https://t.me/share/url?url=URL&text=TITLE" # Uncomment below if you need to. # - diff --git a/_tabs/about.md b/_tabs/about.md index b511014..9f0b95f 100644 --- a/_tabs/about.md +++ b/_tabs/about.md @@ -4,5 +4,5 @@ icon: fas fa-info-circle order: 4 --- - -> **Note**: Add Markdown syntax content to file `_tabs/about.md` and it will show up on this page. +> Add Markdown syntax content to file `_tabs/about.md`{: .filepath } and it will show up on this page. +{: .prompt-tip } diff --git a/assets/lib b/assets/lib new file mode 160000 index 0000000..d1d2ec1 --- /dev/null +++ b/assets/lib @@ -0,0 +1 @@ +Subproject commit d1d2ec17c88176753d4dd2a1296620021dcc22fd