Skip to content

Commit

Permalink
Access Disqus shortname from canonical location (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Nov 22, 2023
1 parent bd75943 commit 91df000
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1 class="f1 athelas mt3 mb1">
{{- .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 }}
Expand Down

0 comments on commit 91df000

Please sign in to comment.