Switch to Hugo's built-in Disqus template
This commit is contained in:
parent
8349cf1aa1
commit
eab1974019
|
@ -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"
|
||||
```
|
||||
|
||||
**YAML**
|
||||
```yaml
|
||||
params:
|
||||
disqusShortname: "spf13"
|
||||
```
|
||||
> **Note:** Previous version 1.0 the Disqus shortname had to be defined inside the `[params]` block.
|
||||
|
||||
## Author
|
||||
**Mark Otto**
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ if .Site.Params.disqusShortname -}}
|
||||
{{ if .Site.DisqusShortname -}}
|
||||
<h2>Comments</h2>
|
||||
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
Loading…
Reference in New Issue