]> njoseph.me Git - hyde.git/commitdiff
Switch to Hugo's built-in Disqus template
authordigitalcraftsman <digitalcraftsman@protonmail.com>
Thu, 7 Sep 2017 19:52:10 +0000 (21:52 +0200)
committerdigitalcraftsman <digitalcraftsman@protonmail.com>
Thu, 7 Sep 2017 19:52:10 +0000 (21:52 +0200)
README.md
layouts/_default/single.html

index e3185208f7723be4d41038d10d15ece6ed5227e3..41f2d5e4328a143a957fd8cbe23b394dcbf022d1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -119,19 +119,14 @@ params:
 
 ### Disqus
 
-You can optionally enable a comment system powered by Disqus for the posts. Simply add the variable `disqusShortname` to the `params` in your config file.
+You can optionally enable a comment system powered by Disqus for the posts. Simply add the variable `disqusShortname` to  your config file.
 
 **TOML**
 ```toml
-[params]
-  disqusShortname = "spf13"
+disqusShortname = "spf13"
 ```
 
-**YAML**
-```yaml
-params:
-  disqusShortname: "spf13"
-```
+> **Note:** Previous version 1.0 the Disqus shortname had to be defined inside the `[params]` block.
 
 ## Author
 **Mark Otto**
index c5fdbc23f6828b816e935d85e1d1f10d20ce96fa..a9f5d33c862f5cf7e49ffb26a7378677176002b8 100644 (file)
@@ -5,8 +5,8 @@
   {{ .Content }}
 </div>
 
-{{ if .Site.Params.disqusShortname -}}
+{{ if .Site.DisqusShortname -}}
 <h2>Comments</h2>
-
+{{ template "_internal/disqus.html" . }}
 {{- end }}
 {{- end }}
\ No newline at end of file