Access Disqus shortname from canonical location (#660)
This commit is contained in:
parent
bd759431a9
commit
91df000ca8
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:
|
||||
|
||||
- DISQUS: `disqusShortname = YOURSHORTNAME`
|
||||
- COMMENTO:
|
||||
- DISQUS:
|
||||
|
||||
```toml
|
||||
[services.disqus]
|
||||
shortname = 'YOURSHORTNAME'
|
||||
```
|
||||
|
||||
- COMMENTO:
|
||||
|
||||
```toml
|
||||
[params]
|
||||
commentoEnable = true
|
||||
```
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
{{- .Content -}}
|
||||
{{- partial "tags.html" . -}}
|
||||
<div class="mt6 instapaper_ignoref">
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ if .Site.Config.Services.Disqus.Shortname }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.commentoEnable }}
|
||||
|
|
Loading…
Reference in a new issue