Access Disqus shortname from canonical location (#660)

This commit is contained in:
Joe Mooring 2023-11-22 08:05:23 -08:00 committed by GitHub
parent bd759431a9
commit 91df000ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: 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
``` ```

View file

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