diff --git a/_includes/toc.html b/_includes/toc.html
index 888466d275b..0f877267b39 100644
--- a/_includes/toc.html
+++ b/_includes/toc.html
@@ -3,7 +3,7 @@
{% if enable_toc %}
-
{{- site.data.locales[include.lang].panel.toc -}}
+
{{- site.data.locales[include.lang].panel.toc -}}
{% endif %}
diff --git a/_javascript/modules/components/toc.js b/_javascript/modules/components/toc.js
index e9086eedf9a..dec814f5c05 100644
--- a/_javascript/modules/components/toc.js
+++ b/_javascript/modules/components/toc.js
@@ -27,6 +27,9 @@ function init() {
mobile.init();
}
+ const $tocWrapper = document.getElementById('toc-wrapper');
+ $tocWrapper.classList.remove('invisible');
+
desktopMode.onchange = refresh;
}
diff --git a/_javascript/modules/components/toc/toc-desktop.js b/_javascript/modules/components/toc/toc-desktop.js
index 0aaba48fcc7..ea4986bac79 100644
--- a/_javascript/modules/components/toc/toc-desktop.js
+++ b/_javascript/modules/components/toc/toc-desktop.js
@@ -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);
}
}
diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md
index 69eaf34acbe..085e7d67bf4 100644
--- a/_posts/2019-08-08-write-a-new-post.md
+++ b/_posts/2019-08-08-write-a-new-post.md
@@ -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:
diff --git a/_sass/pages/_post.scss b/_sass/pages/_post.scss
index 9b8fa7e6d75..12a301f5cde 100644
--- a/_sass/pages/_post.scss
+++ b/_sass/pages/_post.scss
@@ -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;
}
}