Skip to content

Commit

Permalink
Update Jekyll Theme in 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-van-Jerry committed Oct 16, 2024
1 parent c0de369 commit 134f55b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 24 deletions.
18 changes: 2 additions & 16 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,13 @@

source "https://rubygems.org"

gem "jekyll-theme-chirpy", "~> 6.1"
gem "jekyll-theme-chirpy", "~> 7.1", ">= 7.1.1"

group :test do
gem "html-proofer", "~> 3.18"
end
gem "html-proofer", "~> 5.0", group: :test

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
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
46 changes: 38 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ baseurl: ""
# otherwise, the layout language will use the default value of 'en'.
lang: en

# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
timezone:
# Change to your timezone › https://kevinnovak.github.io/Time-Zone-Picker
timezone: America/Los_Angeles

# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
# ↓ --------------------------
Expand Down Expand Up @@ -47,13 +47,38 @@ social:
# - https://www.facebook.com/username
- https://www.linkedin.com/in/wuqiong-zhao

google_site_verification: # fill in to your verification string
# Site Verification Settings
webmaster_verifications:
google: # fill in your Google verification code
bing: # fill in your Bing verification code
alexa: # fill in your Alexa verification code
yandex: # fill in your Yandex verification code
baidu: # fill in your Baidu verification code
facebook: # fill in your Facebook verification code

# ↑ --------------------------
# The end of `jekyll-seo-tag` settings

google_analytics:
id: # fill in your Google Analytics ID
# Web Analytics Settings
analytics:
google:
id: # fill in your Google Analytics ID
goatcounter:
id: # fill in your GoatCounter ID
umami:
id: # fill in your Umami ID
domain: # fill in your Umami domain
matomo:
id: # fill in your Matomo ID
domain: # fill in your Matomo domain
cloudflare:
id: # fill in your Cloudflare Web Analytics token
fathom:
id: # fill in your Fathom Site ID

# Page views settings
pageviews:
provider: # now only supports 'goatcounter'

# Prefer color scheme setting.
#
Expand All @@ -68,16 +93,20 @@ google_analytics:
#
theme_mode: # [light|dark]

# The CDN endpoint for images.
# The CDN endpoint for media resources.
# Notice that once it is assigned, the CDN url
# will be added to all image (site avatar & posts' images) paths starting with '/'
# will be added to all media resources (site avatar, posts' images, audio and video files) paths starting with '/'
#
# e.g. 'https://cdn.com'
img_cdn:
cdn:

# the avatar on sidebar, support local or CORS resources
avatar: assets/img/avatar.png

# The URL of the site-wide social preview image used in SEO `og:image` meta tag.
# It can be overridden by a customized `page.image` in front matter.
social_preview_image: # string, local or CORS resources

# boolean type, the global switch for TOC in posts.
toc: true

Expand Down Expand Up @@ -117,6 +146,7 @@ paginate: 10
# ------------ The following options are not recommended to be modified ------------------

kramdown:
footnote_backlink: "&#8617;&#xfe0e;"
syntax_highlighter: rouge
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
css_class: highlight
Expand Down

0 comments on commit 134f55b

Please sign in to comment.