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

Patrick Kollitsch
29.29.2025 a1ed47cf971e3074eb16a8b1b0d365fd258ef97a
theme(fix): enable selfhosted commento.io URL

see #873

Signed-off-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
2 files modified
19 ■■■■ changed files
README.md 16 ●●●●● patch | view | raw | blame | history
layouts/partials/commento.html 3 ●●●● patch | view | raw | blame | history
README.md
@@ -59,21 +59,7 @@
### Add comments
To enable comments, add following to your config file:
* DISQUS:
  ```toml
  [services.disqus]
    shortname = 'YOURSHORTNAME'
  ```
* COMMENTO:
  ```toml
  [params]
    commentoEnable = true
  ```
[see Wiki > Customization Comments](https://github.com/theNewDynamic/gohugo-theme-ananke/wiki/Customization-Comments)
### Change the hero background
layouts/partials/commento.html
@@ -1,2 +1,3 @@
{{ $url := site.Params.commentoPath | compare.Default "https://cdn.commento.io/js/commento.js" }}
<div id="commento"></div>
<script defer src="https://cdn.commento.io/js/commento.js"></script>
<script defer src="{{- $url -}}"></script>