mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Joe Mooring
22.05.2023 91df000ca82769a7578df81fa142d1a18e446bc0
Access Disqus shortname from canonical location (#660)

2 files modified
13 ■■■■ changed files
README.md 11 ●●●● patch | view | raw | blame | history
layouts/_default/single.html 2 ●●● patch | view | raw | blame | history
README.md
@@ -96,9 +96,16 @@
To enable comments, add following to your config file:
- DISQUS: `disqusShortname = YOURSHORTNAME`
- COMMENTO:
- DISQUS:
  ```toml
  [services.disqus]
    shortname = 'YOURSHORTNAME'
  ```
- COMMENTO:
  ```toml
  [params]
    commentoEnable = true
  ```
layouts/_default/single.html
@@ -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 }}