Skip to content

Commit b3395b1

Browse files
Merge branch 'production'
2 parents 389a988 + 2e4d6d6 commit b3395b1

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

_includes/toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% if enable_toc %}
44
<div class="toc-border-cover z-3"></div>
55
<section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4">
6-
<h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
6+
<h2 class="panel-heading ps-3 pb-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
77
<nav id="toc"></nav>
88
</section>
99
{% endif %}

_javascript/modules/components/toc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function init() {
2727
mobile.init();
2828
}
2929

30+
const $tocWrapper = document.getElementById('toc-wrapper');
31+
$tocWrapper.classList.remove('invisible');
32+
3033
desktopMode.onchange = refresh;
3134
}
3235

_javascript/modules/components/toc/toc-desktop.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ export class TocDesktop {
1515
}
1616

1717
static init() {
18-
const $tocWrapper = document.getElementById('toc-wrapper');
19-
20-
if ($tocWrapper) {
21-
tocbot.init(this.options);
22-
$tocWrapper.classList.remove('invisible');
23-
}
18+
tocbot.init(this.options);
2419
}
2520
}

_posts/2019-08-08-write-a-new-post.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ toc: false
9797

9898
## Comments
9999

100-
The global switch of comments is defined by variable `comments.active` in the file `_config.yml`{: .filepath}. After selecting a comment system for this variable, comments will be turned on for all posts.
100+
The global setting for comments is defined by the `comments.provider` option in the `_config.yml`{: .filepath} file. Once a comment system is selected for this variable, comments will be enabled for all posts.
101101

102102
If you want to close the comment for a specific post, add the following to the **Front Matter** of the post:
103103

_sass/pages/_post.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,8 @@ header {
272272
padding-left: 0;
273273

274274
li {
275-
&:not(:last-child) {
276-
margin: 0.4rem 0;
277-
}
278-
279275
a {
280-
padding: 0.2rem 0 0.2rem 1.25rem;
276+
padding: 0.4rem 0 0.4rem 1.25rem;
281277
}
282278
}
283279

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [7.2.4](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.2.3...v7.2.4) (2024-12-21)
4+
5+
### Bug Fixes
6+
7+
* toc not visible when switching from mobile to desktop mode ([#2139](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2139)) ([32051da](https://github.com/cotes2020/jekyll-theme-chirpy/commit/32051dad03cb8f60fa4206969377b9674f9a3f0c))
8+
* **ui:** left borderline of TOC is notched ([#2140](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2140)) ([8a4d0bc](https://github.com/cotes2020/jekyll-theme-chirpy/commit/8a4d0bc4ee9e142a11401cad80bc9605878f121d))
9+
310
## [7.2.3](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.2.2...v7.2.3) (2024-12-15)
411

512
### Bug Fixes

jekyll-theme-chirpy.gemspec

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

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-theme-chirpy"
5-
spec.version = "7.2.3"
5+
spec.version = "7.2.4"
66
spec.authors = ["Cotes Chung"]
77
spec.email = ["cotes.chung@gmail.com"]
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jekyll-theme-chirpy",
3-
"version": "7.2.3",
3+
"version": "7.2.4",
44
"description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)