Access Disqus shortname from canonical location (#660)
This commit is contained in:
parent
8072886809
commit
b72959de74
11
README.md
11
README.md
|
@ -96,9 +96,16 @@ You may need to delete the line: `themesDir = "../.."`
|
||||||
|
|
||||||
To enable comments, add following to your config file:
|
To enable comments, add following to your config file:
|
||||||
|
|
||||||
- DISQUS: `disqusShortname = YOURSHORTNAME`
|
- DISQUS:
|
||||||
- COMMENTO:
|
|
||||||
|
```toml
|
||||||
|
[services.disqus]
|
||||||
|
shortname = 'YOURSHORTNAME'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- COMMENTO:
|
||||||
|
|
||||||
|
```toml
|
||||||
[params]
|
[params]
|
||||||
commentoEnable = true
|
commentoEnable = true
|
||||||
```
|
```
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
{{- .Content -}}
|
{{- .Content -}}
|
||||||
{{- partial "tags.html" . -}}
|
{{- partial "tags.html" . -}}
|
||||||
<div class="mt6 instapaper_ignoref">
|
<div class="mt6 instapaper_ignoref">
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if .Site.Config.Services.Disqus.Shortname }}
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.commentoEnable }}
|
{{ if .Site.Params.commentoEnable }}
|
||||||
|
|
Loading…
Reference in a new issue