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