You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-9
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ The title for this section is `Posts` by default and rendered with an `<h2>` tag
104
104
105
105
Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
106
106
107
-
-`disqus_comments.html`—Code to markup disqus comment box.
107
+
-`comments.html`—Markup to render comments (via Disqus; active only when Jekyll environment is set to `production`).
108
108
-`footer.html`— Defines the site's footer section.
109
109
-`google-analytics.html`— Inserts Google Analytics module (active only in production environment).
110
110
-`head.html`— Code-block that defines the `<head></head>` in *default* layout.
@@ -272,22 +272,20 @@ You can *add* custom metadata to the `<head />` of your layouts by creating a fi
272
272
273
273
### Enabling comments (via Disqus)
274
274
275
-
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
276
-
277
-
:warning: `url`, e.g. `https://example.com`, must be set in you config file for Disqus to work.
278
-
279
-
To enable it, after setting the url field, you also need to add the following lines to your Jekyll site:
275
+
Optionally, if you have a Disqus account, you can render a comments section below each post with the following configuration:
280
276
281
277
```yaml
282
-
disqus:
283
-
shortname: my_disqus_shortname
278
+
url: "https://my_domain.com"
279
+
disqus:
280
+
shortname: my_disqus_shortname
284
281
```
285
282
286
283
You can find out more about Disqus' shortnames [here](https://help.disqus.com/installation/whats-a-shortname).
287
284
288
285
Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
289
286
290
-
If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
287
+
If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that
Copy file name to clipboardExpand all lines: _posts/2016-05-20-my-example-post.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
layout: post
3
3
author: John Doe
4
+
comments: false
4
5
---
5
6
6
7
Eos eu docendi tractatos sapientem, brute option menandri in vix, quando vivendo accommodare te ius. Nec melius fastidii constituam id, viderer theophrastus ad sit, hinc semper periculis cum id. Noluisse postulant assentior est in, no choro sadipscing repudiandae vix. Vis in euismod delenit dignissim. Ex quod nostrum sit, suas decore animal id ius, nobis solet detracto quo te.
0 commit comments