mirror of https://github.com/lxndrblz/anatole.git

Xen-Echo
11.24.2021 c0e180a37ed25b0efe14fafe58dbad595a10de06
Implemented per page comment disabling using the page Front Matter. (#150)

2 files modified
9 ■■■■ changed files
README.md 7 ●●●●● patch | view | raw | blame | history
layouts/_default/single.html 2 ●●● patch | view | raw | blame | history
README.md
@@ -231,9 +231,16 @@
theme= "preferred-color-scheme"
# label = 
```
Two notes on the security of Utteranc.es
- If you are using a strict CSP, you'll have to add the domain to it. 
- The script currently has no built-in integrity check, due to limitations of [Utterances](https://github.com/utterance/utterances/issues/40).
### Disabling Comments Per Page
Comments can be disabled per page by setting `disableComments: true` on the pages [Front Matter](https://gohugo.io/content-management/front-matter/)
### Google Analytics
To use Google Analytics, a valid tracking code has to be added. If you don't want to load the code, then commend out the parameter.
layouts/_default/single.html
@@ -33,7 +33,7 @@
            </div>
        </div>
        {{ if eq .Type "post"}}
        {{ if and (eq .Type "post") (ne .Page.Params.disableComments true) }}
            {{- if .Site.DisqusShortname -}}
                <div id="fb_comments_container">
                    <h2>{{ i18n "comments" }}</h2>