about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authordigitalcraftsman2017-09-07 21:52:10 +0200
committerdigitalcraftsman2017-09-07 21:52:10 +0200
commiteab1974019b3d82cb76cb806ba059fb6cc196111 (patch)
tree082e582a72e075df07a5867dbef01a159b5b3cd7
parent8349cf1aa1bf4675ba10bc47882a7fb089a54ceb (diff)
downloadhyde-eab1974019b3d82cb76cb806ba059fb6cc196111.tar.lz
hyde-eab1974019b3d82cb76cb806ba059fb6cc196111.tar.zst
hyde-eab1974019b3d82cb76cb806ba059fb6cc196111.zip
Switch to Hugo's built-in Disqus template
-rw-r--r--README.md11
-rw-r--r--layouts/_default/single.html4
2 files changed, 5 insertions, 10 deletions
diff --git a/README.md b/README.md
index e318520..41f2d5e 100644
--- 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**
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c5fdbc2..a9f5d33 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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