Skip to content

Commit 8d77f3a

Browse files
committed
Upgrade jekyll-theme-chirpy version
Upgrade jekyll-theme-chirpy version from v7.1.1 to v7.2.0 - Features - show toc on mobile screens - support vertical scrolling for toc in desktop mode - Bug Fixes - pagination error when pinned posts exceed the page size - Improvements - modular sass architecture - speed up page rendering and jekyll build process
1 parent 273125c commit 8d77f3a

File tree

5 files changed

+29
-10
lines changed

5 files changed

+29
-10
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ package-lock.json
3030
!.vscode/tasks.json
3131

3232
# Misc
33-
_sass/dist
33+
_sass/vendors
3434
assets/js/dist
3535

3636
# ignore .DS_Store of macOS

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
gem "jekyll-theme-chirpy", "~> 7.1", ">= 7.1.1"
5+
gem "jekyll-theme-chirpy", "~> 7.2"
66

77
gem "html-proofer", "~> 5.0", group: :test
88

@@ -11,7 +11,7 @@ platforms :mingw, :x64_mingw, :mswin, :jruby do
1111
gem "tzinfo-data"
1212
end
1313

14-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
14+
gem "wdm", "~> 0.2.0", :platforms => [:mingw, :x64_mingw, :mswin]
1515

1616
group :jekyll_plugins do
1717
gem "jekyll-polyglot"

_includes/head.html

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
<!-- Bootstrap -->
8282
{% unless jekyll.environment == 'production' %}
83-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].2/dist/css/bootstrap.min.css">
83+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].3/dist/css/bootstrap.min.css">
8484
{% endunless %}
8585

8686
<!-- Theme style -->
@@ -113,12 +113,33 @@
113113
<link rel="stylesheet" href="{{ site.data.origin[type].glightbox.css | relative_url }}">
114114
{% endif %}
115115

116-
<!-- JavaScript -->
116+
<!-- Scripts -->
117117

118118
{% unless site.theme_mode %}
119-
{% include mode-toggle.html %}
119+
<script src="{{ '/assets/js/dist/theme.min.js' | relative_url }}"></script>
120120
{% endunless %}
121121

122+
{% include js-selector.html lang=lang %}
123+
124+
{% if jekyll.environment == 'production' %}
125+
<!-- PWA -->
126+
{% if site.pwa.enabled %}
127+
<script
128+
defer
129+
src="{{ '/app.min.js' | relative_url }}?baseurl={{ site.baseurl | default: '' }}&register={{ site.pwa.cache.enabled }}"
130+
></script>
131+
{% endif %}
132+
133+
<!-- Web Analytics -->
134+
{% for analytics in site.analytics %}
135+
{% capture str %}{{ analytics }}{% endcapture %}
136+
{% assign platform = str | split: '{' | first %}
137+
{% if site.analytics[platform].id and site.analytics[platform].id != empty %}
138+
{% include analytics/{{ platform }}.html %}
139+
{% endif %}
140+
{% endfor %}
141+
{% endif %}
142+
122143
{% include metadata-hook.html %}
123144

124145

_includes/sidebar.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
{%- endif -%}
1212
</a>
1313

14-
<h1 class="site-title">
15-
<a href="{{ '/' | relative_url }}">{{ site.title }}</a>
16-
</h1>
14+
<a class="site-title d-block" href="{{ '/' | relative_url }}">{{ site.title }}</a>
1715
<p class="site-subtitle fst-italic mb-0">{{ site.tagline }}</p>
1816
</header>
1917
<!-- .profile-wrapper -->

assets/css/jekyll-theme-chirpy.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
---
33

4-
@import 'main
4+
@use 'main
55
{%- if jekyll.environment == 'production' -%}
66
.bundle
77
{%- endif -%}

0 commit comments

Comments
 (0)