Skip to content

Commit 269342c

Browse files
Merge pull request #41 from joshjohanning/chirpy-v7.0.1
updating to chirpy v7.0.1
2 parents d8f32bc + a4be7c8 commit 269342c

File tree

140 files changed

+1207
-923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+1207
-923
lines changed

.github/workflows/pages-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Ruby
4343
uses: ruby/setup-ruby@v1
4444
with:
45-
ruby-version: 3.2
45+
ruby-version: 3.3
4646
bundler-cache: true
4747

4848
- name: Build site
@@ -53,7 +53,7 @@ jobs:
5353
- name: Test site
5454
run: |
5555
bundle exec htmlproofer _site \
56-
\-\-disable-external=true \
56+
\-\-disable-external \
5757
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5858
5959
- name: Upload site artifact

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Gemfile.lock
55

66
# Jekyll cache
77
.jekyll-cache
8+
.jekyll-metadata
89
_site
910

1011
# RubyGems

Gemfile

+1-15
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,5 @@ source "https://rubygems.org"
55
gemspec
66

77
group :test do
8-
gem "html-proofer", "~> 4.4"
8+
gem "html-proofer", "~> 5.0"
99
end
10-
11-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
12-
# and associated library.
13-
platforms :mingw, :x64_mingw, :mswin, :jruby do
14-
gem "tzinfo", ">= 1", "< 3"
15-
gem "tzinfo-data"
16-
end
17-
18-
# Performance-booster for watching directories on Windows
19-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
20-
21-
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
22-
# do not have a Java counterpart.
23-
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Since we aren't using the theme gem (so we can do customizations), we have to do
6868
- To cherry-pick a single commit (not as common): `git cherry-pick a887f1d -m 1`
6969
- If getting GPG errors, modify the local git config: `git config commit.gpgsign false`, but modify it back to `true` after you are done cherry-picking and rebasing (before amending commit)
7070
5. Review merge conflicts - use a combination of `git cherry-pick --skip` (for when readme/starter posts are updated) and `cherry-pick --continue` (to continue after you resolve real merge conflicts)
71-
6. Starting in Chirpy v5.6.0, run: `npm run build && git add assets/js/dist -f && git commit -m "update js assets"` ([docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide#upgrade-the-fork))
71+
6. Starting in Chirpy v5.6.0, run: `npm run build && git add assets/js/dist _sass/dist -f && git commit -m "update js assets"` ([docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide#upgrade-the-fork))
7272
7. Rebase the number of commits you just brought in (you should see icon in VS Code): `git rebase -i HEAD~16`
7373
- Leave the top commit as `pick` but change the rest to `squash`
7474
- Update the commit message as appropriate
@@ -94,10 +94,10 @@ bundle exec jekyll s
9494

9595
Check ruby version: `ruby -v` (if ruby 2.6.10p210, then you need to upgrade to 3.0.0+):
9696

97-
1. Install rvm: `\curl -sSL https://get.rvm.io | bash -s stable --ruby`
98-
- Uninstall `openssl@3` temporarily if you receive errors: `brew uninstall --ignore-dependencies openssl@3`
99-
2. Check ruby version: `ruby -v` (should be 3.0.0+)
100-
3. Build and serve the site as normal
97+
1. Install Ruby via Homebrew: `brew install ruby` (can also use [`rvm`](https://rvm.io/rvm/install))
98+
2. Make sure the new Ruby is in your path: `export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc`
99+
3. Check ruby version: `ruby -v` (should be 3.0.0+)
100+
4. Build and serve the site as normal
101101

102102
#### On Codespaces
103103

_config.yml

+35-12
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,36 @@ social:
4444
# - https://www.facebook.com/username
4545
- https://www.linkedin.com/in/joshua-johanning/
4646

47-
google_site_verification: eTIC71VhPBtwll8rNv7qlXud1yJh6E88No39MdcM_MI # change to your verification string
47+
# Site Verification Settings
48+
webmaster_verifications:
49+
google: eTIC71VhPBtwll8rNv7qlXud1yJh6E88No39MdcM_MI # fill in your Google verification code
50+
bing: # fill in your Bing verification code
51+
alexa: # fill in your Alexa verification code
52+
yandex: # fill in your Yandex verification code
53+
baidu: # fill in your Baidu verification code
54+
facebook: # fill in your Facebook verification code
4855

4956
# ↑ --------------------------
5057
# The end of `jekyll-seo-tag` settings
5158

52-
google_analytics:
53-
id: "G-GE92ZJY22K" # fill in your Google Analytics ID
54-
55-
goatcounter:
56-
id: # fill in your Goatcounter ID
59+
# Web Analytics Settings
60+
analytics:
61+
google:
62+
id: "G-GE92ZJY22K" # fill in your Google Analytics ID
63+
goatcounter:
64+
id: # fill in your GoatCounter ID
65+
umami:
66+
id: # fill in your Umami ID
67+
domain: # fill in your Umami domain
68+
matomo:
69+
id: # fill in your Matomo ID
70+
domain: # fill in your Matomo domain
71+
cloudflare:
72+
id: # fill in your Cloudflare Web Analytics token
73+
74+
# Pageviews settings
75+
pageviews:
76+
provider: # now only supports 'goatcounter'
5777

5878
# Prefer color scheme setting.
5979
#
@@ -68,12 +88,12 @@ goatcounter:
6888
#
6989
theme_mode: # [light | dark]
7090

71-
# The CDN endpoint for images.
91+
# The CDN endpoint for media resources.
7292
# Notice that once it is assigned, the CDN url
73-
# will be added to all image (site avatar & posts' images) paths starting with '/'
93+
# will be added to all media resources (site avatar, posts' images, audio and video files) paths starting with '/'
7494
#
7595
# e.g. 'https://cdn.com'
76-
img_cdn:
96+
cdn: ""
7797

7898
# the avatar on sidebar, support local or CORS resources
7999
avatar: /assets/img/sample/headshot.png
@@ -86,8 +106,9 @@ social_preview_image: # string, local or CORS resources
86106
toc: true
87107

88108
comments:
89-
active: utterances # The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable
90-
# The active options are as follows:
109+
# Global switch for the post comment system. Keeping it empty means disabled.
110+
provider: utterances # [disqus | utterances | giscus]
111+
# The provider options are as follows:
91112
disqus:
92113
shortname: # fill with the Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
93114
# utterances settings › https://utteranc.es/
@@ -101,6 +122,7 @@ comments:
101122
category:
102123
category_id:
103124
mapping: # optional, default to 'pathname'
125+
strict: # optional, default to '0'
104126
input_position: # optional, default to 'bottom'
105127
lang: # optional, default to the value of `site.lang`
106128
reactions_enabled: # optional, default to the value of `1`
@@ -131,6 +153,7 @@ baseurl: ""
131153
# ------------ The following options are not recommended to be modified ------------------
132154

133155
kramdown:
156+
footnote_backlink: "&#8617;&#xfe0e;"
134157
syntax_highlighter: rouge
135158
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
136159
css_class: highlight
@@ -191,7 +214,7 @@ exclude:
191214
- tools
192215
- README.md
193216
- LICENSE
194-
- rollup.config.js
217+
- "*.config.js"
195218
- package*.json
196219

197220
jekyll-archives:

_data/media.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- extension: mp3
2+
mime_type: mpeg
3+
- extension: mov
4+
mime_type: quicktime
5+
- extension: avi
6+
mime_type: x-msvideo
7+
- extension: mkv
8+
mime_type: x-matroska
9+
- extension: ogv
10+
mime_type: ogg
11+
- extension: weba
12+
mime_type: webm
13+
- extension: 3gp
14+
mime_type: 3gpp
15+
- extension: 3g2
16+
mime_type: 3gpp2
17+
- extension: mid
18+
mime_type: midi

_data/origin/basic.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ webfonts: /assets/lib/fonts/main.css
44

55
# Libraries
66

7-
jquery:
8-
js: /assets/lib/jquery/jquery.min.js
9-
10-
bootstrap:
11-
css: /assets/lib/bootstrap/bootstrap.min.css
12-
js: /assets/lib/bootstrap/bootstrap.bundle.min.js
13-
147
toc:
158
css: /assets/lib/tocbot/tocbot.min.css
169
js: /assets/lib/tocbot/tocbot.min.js
@@ -31,9 +24,9 @@ dayjs:
3124
relativeTime: /assets/lib/dayjs/plugin/relativeTime.min.js
3225
localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.min.js
3326

34-
magnific-popup:
35-
css: /assets/lib/magnific-popup/magnific-popup.css
36-
js: /assets/lib/magnific-popup/jquery.magnific-popup.min.js
27+
glightbox:
28+
css: /assets/lib/glightbox/glightbox.min.css
29+
js: /assets/lib/glightbox/glightbox.min.js
3730

3831
lazy-polyfill:
3932
css: /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css

_data/origin/cors.yml

+26-31
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,47 @@
1-
# CDNs
2-
3-
cdns:
4-
# Google Fonts
1+
# Resource Hints
2+
resource_hints:
53
- url: https://fonts.googleapis.com
4+
links:
5+
- rel: preconnect
6+
- rel: dns-prefetch
67
- url: https://fonts.gstatic.com
7-
args: crossorigin
8-
- url: https://fonts.googleapis.com
9-
# jsDelivr CDN
8+
links:
9+
- rel: preconnect
10+
opts: [crossorigin]
11+
- rel: dns-prefetch
1012
- url: https://cdn.jsdelivr.net
11-
# polyfill.io for math (cdnjs.cloudflare.com/polyfill)
12-
- url: https://cdnjs.cloudflare.com
13-
14-
# fonts
13+
links:
14+
- rel: preconnect
15+
- rel: dns-prefetch
1516

16-
webfonts: https://fonts.googleapis.com/css2?family=Lato&family=Source+Sans+Pro:wght@400;600;700;900&display=swap
17+
# Web Fonts
18+
webfonts: https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Source+Sans+Pro:wght@400;600;700;900&display=swap
1719

1820
# Libraries
1921

20-
jquery:
21-
js: https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
22-
23-
bootstrap:
24-
css: https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css
25-
js: https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js
26-
2722
toc:
28-
css: https://cdn.jsdelivr.net/npm/tocbot@4.25.0/dist/tocbot.min.css
29-
js: https://cdn.jsdelivr.net/npm/tocbot@4.25.0/dist/tocbot.min.js
23+
css: https://cdn.jsdelivr.net/npm/tocbot@4.27.20/dist/tocbot.min.css
24+
js: https://cdn.jsdelivr.net/npm/tocbot@4.27.20/dist/tocbot.min.js
3025

3126
fontawesome:
32-
css: https://cdn.jsdelivr.net/npm/@fortawesome/[email protected].1/css/all.min.css
27+
css: https://cdn.jsdelivr.net/npm/@fortawesome/[email protected].2/css/all.min.css
3328

3429
search:
3530
js: https://cdn.jsdelivr.net/npm/[email protected]/dest/simple-jekyll-search.min.js
3631

3732
mermaid:
38-
js: https://cdn.jsdelivr.net/npm/mermaid@10.8.0/dist/mermaid.min.js
33+
js: https://cdn.jsdelivr.net/npm/mermaid@10.9.0/dist/mermaid.min.js
3934

4035
dayjs:
4136
js:
42-
common: https://cdn.jsdelivr.net/npm/[email protected].10/dayjs.min.js
43-
locale: https://cdn.jsdelivr.net/npm/[email protected].10/locale/:LOCALE.min.js
44-
relativeTime: https://cdn.jsdelivr.net/npm/[email protected].10/plugin/relativeTime.min.js
45-
localizedFormat: https://cdn.jsdelivr.net/npm/[email protected].10/plugin/localizedFormat.min.js
46-
47-
magnific-popup:
48-
css: https://cdn.jsdelivr.net/npm/[email protected].0/dist/magnific-popup.min.css
49-
js: https://cdn.jsdelivr.net/npm/[email protected].0/dist/jquery.magnific-popup.min.js
37+
common: https://cdn.jsdelivr.net/npm/[email protected].11/dayjs.min.js
38+
locale: https://cdn.jsdelivr.net/npm/[email protected].11/locale/:LOCALE.min.js
39+
relativeTime: https://cdn.jsdelivr.net/npm/[email protected].11/plugin/relativeTime.min.js
40+
localizedFormat: https://cdn.jsdelivr.net/npm/[email protected].11/plugin/localizedFormat.min.js
41+
42+
glightbox:
43+
css: https://cdn.jsdelivr.net/npm/[email protected].0/dist/css/glightbox.min.css
44+
js: https://cdn.jsdelivr.net/npm/[email protected].0/dist/js/glightbox.min.js
5045

5146
lazy-polyfill:
5247
css: https://cdn.jsdelivr.net/npm/[email protected]/dist/loading-attribute-polyfill.min.css

_data/share.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ platforms:
2222
#
2323
# - type: Weibo
2424
# icon: "fab fa-weibo"
25-
# link: "http://service.weibo.com/share/share.php?title=TITLE&url=URL"
25+
# link: "https://service.weibo.com/share/share.php?title=TITLE&url=URL"
2626
#
2727
- type: Mastodon
2828
icon: "fa-brands fa-mastodon"

_includes/analytics/cloudflare.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- Cloudflare Web Analytics -->
2+
<script
3+
defer
4+
src="https://static.cloudflareinsights.com/beacon.min.js"
5+
data-cf-beacon='{"token": "{{ site.analytics.cloudflare.id }}"}'
6+
></script>
7+
<!-- End Cloudflare Web Analytics -->

_includes/analytics/goatcounter.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- GoatCounter -->
2+
<script
3+
async
4+
src="https://gc.zgo.at/count.js"
5+
data-goatcounter="https://{{ site.analytics.goatcounter.id }}.goatcounter.com/count"
6+
></script>

_includes/analytics/google.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Global site tag (gtag.js) - Google Analytics -->
2+
<script defer src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.id }}"></script>
3+
<script>
4+
document.addEventListener('DOMContentLoaded', function (event) {
5+
window.dataLayer = window.dataLayer || [];
6+
function gtag() {
7+
dataLayer.push(arguments);
8+
}
9+
10+
gtag('js', new Date());
11+
gtag('config', '{{ site.analytics.google.id }}');
12+
});
13+
</script>

_includes/analytics/matomo.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- Matomo -->
2+
<script type="text/javascript">
3+
var _paq = window._paq = window._paq || [];
4+
_paq.push(['trackPageView']);
5+
_paq.push(['enableLinkTracking']);
6+
(function() {
7+
var u="//{{ site.analytics.matomo.domain }}/";
8+
_paq.push(['setTrackerUrl', u+'matomo.php']);
9+
_paq.push(['setSiteId', {{ site.analytics.matomo.id }}]);
10+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
11+
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
12+
})();
13+
</script>
14+
<!-- End Matomo Code -->

_includes/analytics/umami.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- Umami -->
2+
<script
3+
defer
4+
src="{{ site.analytics.umami.domain }}/script.js"
5+
data-website-id="{{ site.analytics.umami.id }}"
6+
></script>

_includes/comments.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<!-- The comments switcher -->
2-
{% if page.comments and site.comments.active %}
3-
{% capture path %}comments/{{ site.comments.active }}.html{% endcapture %}
1+
<!-- The comments switcher -->
2+
{% if page.comments and site.comments.provider %}
3+
{% capture path %}comments/{{ site.comments.provider }}.html{% endcapture %}
44
{% include {{ path }} %}
55
{% endif %}

_includes/comments/disqus.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
this.page.identifier = '{{ page.url }}';
1111
};
1212

13-
/* Lazy loading */
13+
{%- comment -%} Lazy loading {%- endcomment -%}
1414
var disqus_observer = new IntersectionObserver(
1515
function (entries) {
1616
if (entries[0].isIntersecting) {
@@ -28,12 +28,12 @@
2828
{ threshold: [0] }
2929
);
3030

31-
disqus_observer.observe(document.querySelector('#disqus_thread'));
31+
disqus_observer.observe(document.getElementById('disqus_thread'));
3232

33-
/* Auto switch theme */
33+
{%- comment -%} Auto switch theme {%- endcomment -%}
3434
function reloadDisqus() {
3535
if (event.source === window && event.data && event.data.direction === ModeToggle.ID) {
36-
/* Disqus hasn't been loaded */
36+
{%- comment -%} Disqus hasn't been loaded {%- endcomment -%}
3737
if (typeof DISQUS === 'undefined') {
3838
return;
3939
}
@@ -44,7 +44,7 @@
4444
}
4545
}
4646

47-
if (document.querySelector('.mode-toggle')) {
47+
if (document.getElementById('mode-toggle')) {
4848
window.addEventListener('message', reloadDisqus);
4949
}
5050
</script>

0 commit comments

Comments
 (0)