Skip to content

Commit

Permalink
Update critical file(s) according to Chirpy v5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
traviscibot committed Feb 14, 2022
1 parent 3b07fcc commit d1ef8d4
Show file tree
Hide file tree
Showing 15 changed files with 392 additions and 71 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "assets/lib"]
path = assets/lib
url = https://github.com/cotes2020/chirpy-static-assets.git
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
50 changes: 36 additions & 14 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ↓ --------------------------
Expand All @@ -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: ''
Expand All @@ -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
Expand Down Expand Up @@ -96,6 +97,23 @@ comments:
utterances:
repo: # <gh-username>/<repo>
issue_term: # < url | pathname | title | ...>
# Giscus options › https://giscus.app
giscus:
repo: # <gh-username>/<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

Expand All @@ -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:
Expand All @@ -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
Expand All @@ -158,7 +181,6 @@ exclude:
- '*.gem'
- '*.gemspec'
- tools
- docs
- README.md
- LICENSE
- gulpfile.js
Expand Down
62 changes: 62 additions & 0 deletions _data/assets/cross_origin.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]/dist/bootstrap-toc.min.css
js: https://cdn.jsdelivr.net/gh/afeld/[email protected]/dist/bootstrap-toc.min.js

fontawesome:
css: https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css

search:
js: https://cdn.jsdelivr.net/npm/[email protected]/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/[email protected]/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
51 changes: 51 additions & 0 deletions _data/assets/self_host.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 1 addition & 14 deletions _data/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 0 additions & 13 deletions _data/locales/id-ID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 0 additions & 13 deletions _data/locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -62,11 +54,6 @@ post:
written_by: By
posted: 게시
updated: 업데이트
timeago:
day: 일 전
hour: 시간 전
minute: 분 전
just_now: 방금
words: 단어
pageview_measure: 조회
read_time:
Expand Down
Loading

0 comments on commit d1ef8d4

Please sign in to comment.