Skip to content

Commit 774ee93

Browse files
authored
Release v7.2.4 (#2141)
2 parents c174f62 + 8a4d0bc commit 774ee93

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
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

0 commit comments

Comments
 (0)