Skip to content

Commit

Permalink
Release v7.2.4 (#2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 authored Dec 21, 2024
2 parents c174f62 + 8a4d0bc commit 774ee93
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion _includes/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if enable_toc %}
<div class="toc-border-cover z-3"></div>
<section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4">
<h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
<h2 class="panel-heading ps-3 pb-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
<nav id="toc"></nav>
</section>
{% endif %}
3 changes: 3 additions & 0 deletions _javascript/modules/components/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ function init() {
mobile.init();
}

const $tocWrapper = document.getElementById('toc-wrapper');
$tocWrapper.classList.remove('invisible');

desktopMode.onchange = refresh;
}

Expand Down
7 changes: 1 addition & 6 deletions _javascript/modules/components/toc/toc-desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ export class TocDesktop {
}

static init() {
const $tocWrapper = document.getElementById('toc-wrapper');

if ($tocWrapper) {
tocbot.init(this.options);
$tocWrapper.classList.remove('invisible');
}
tocbot.init(this.options);
}
}
2 changes: 1 addition & 1 deletion _posts/2019-08-08-write-a-new-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ toc: false

## Comments

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.
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.

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

Expand Down
6 changes: 1 addition & 5 deletions _sass/pages/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,8 @@ header {
padding-left: 0;

li {
&:not(:last-child) {
margin: 0.4rem 0;
}

a {
padding: 0.2rem 0 0.2rem 1.25rem;
padding: 0.4rem 0 0.4rem 1.25rem;
}
}

Expand Down

0 comments on commit 774ee93

Please sign in to comment.