Access Disqus shortname from canonical location

This commit is contained in:
Joe Mooring 2023-10-24 10:44:44 -07:00
parent c086834f0e
commit 1757f3e2d7
2 changed files with 10 additions and 3 deletions

View File

@ -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
```

View File

@ -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 }}