Skip to content

Commit 8895c9f

Browse files
Merge pull request #2 from os-santiago/codex/revise-repository-for-chirpy-compatibility
Align Chirpy configuration and Pages deployment workflow
2 parents 3fab357 + 772a8fa commit 8895c9f

File tree

3 files changed

+37
-10
lines changed

3 files changed

+37
-10
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Setup Pages
3939
id: pages
40-
uses: actions/configure-pages@v3
40+
uses: actions/configure-pages@v4
4141

4242
- name: Setup Ruby
4343
uses: ruby/setup-ruby@v1
@@ -57,7 +57,7 @@ jobs:
5757
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5858
5959
- name: Upload site artifact
60-
uses: actions/upload-pages-artifact@v1
60+
uses: actions/upload-pages-artifact@v3
6161
with:
6262
path: "_site${{ steps.pages.outputs.base_path }}"
6363

@@ -70,4 +70,4 @@ jobs:
7070
steps:
7171
- name: Deploy to GitHub Pages
7272
id: deployment
73-
uses: actions/deploy-pages@v2
73+
uses: actions/deploy-pages@v4

Gemfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
source "https://rubygems.org"
44

5-
gem "jekyll-theme-chirpy", "~> 6.3", ">= 6.3.1"
5+
gem "jekyll-theme-chirpy", "~> 6.5", ">= 6.5.5"
6+
7+
group :jekyll_plugins do
8+
gem "jekyll-archives", "~> 2.3"
9+
gem "jekyll-include-cache", "~> 0.2"
10+
gem "jekyll-paginate", "~> 1.1"
11+
gem "jekyll-redirect-from", "~> 0.16"
12+
gem "jekyll-seo-tag", "~> 2.8"
13+
gem "jekyll-sitemap", "~> 1.4"
14+
end
615

716
group :test do
817
gem "html-proofer", "~> 4.4"

_config.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ description: >- # used by seo meta and the atom feed
2323
2424
# Fill in the protocol & hostname for your site.
2525
# e.g. 'https://username.github.io', note that it does not end with a '/'.
26-
url: ""
26+
url: "https://os-santiago.github.io"
2727

2828
github:
2929
username: os-santiago # change to your github username
@@ -53,6 +53,9 @@ google_site_verification: # fill in to your verification string
5353
google_analytics:
5454
id: # fill in your Google Analytics ID
5555

56+
goatcounter:
57+
id: # fill in your Goatcounter ID
58+
5659
# Prefer color scheme setting.
5760
#
5861
# Note: Keep empty will follow the system prefer color by default,
@@ -76,6 +79,10 @@ img_cdn:
7679
# the avatar on sidebar, support local or CORS resources
7780
avatar:
7881

82+
# The URL of the site-wide social preview image used in SEO `og:image` meta tag.
83+
# It can be overridden by a customized `page.image` in front matter.
84+
social_preview_image: # string, local or CORS resources
85+
7986
# boolean type, the global switch for TOC in posts.
8087
toc: true
8188

@@ -108,13 +115,28 @@ assets:
108115
env: # [development|production]
109116

110117
pwa:
111-
enabled: true # the option for PWA feature
118+
enabled: true # the option for PWA feature (installable)
119+
cache:
120+
enabled: true # the option for PWA offline cache
121+
# Paths defined here will be excluded from the PWA cache.
122+
# Usually its value is the `baseurl` of another website that
123+
# shares the same domain name as the current website.
124+
deny_paths:
125+
# - "/example" # URLs match `<SITE_URL>/example/*` will not be cached by the PWA
112126

113127
paginate: 10
114128

115129
# The base URL of your site
116130
baseurl: ""
117131

132+
plugins:
133+
- jekyll-archives
134+
- jekyll-include-cache
135+
- jekyll-paginate
136+
- jekyll-redirect-from
137+
- jekyll-seo-tag
138+
- jekyll-sitemap
139+
118140
# ------------ The following options are not recommended to be modified ------------------
119141

120142
kramdown:
@@ -154,10 +176,6 @@ defaults:
154176
values:
155177
layout: page
156178
permalink: /:title/
157-
- scope:
158-
path: assets/img/favicons
159-
values:
160-
swcache: true
161179
- scope:
162180
path: assets/js/dist
163181
values:

0 commit comments

Comments
 (0)