From a1ed47cf971e3074eb16a8b1b0d365fd258ef97a Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Date: Mon, 29 Sep 2025 02:30:27 +0000
Subject: [PATCH] theme(fix): enable selfhosted commento.io URL
---
layouts/partials/commento.html | 3 ++-
README.md | 16 +---------------
2 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/README.md b/README.md
index 6f5e025..bc62a4f 100644
--- a/README.md
+++ b/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
diff --git a/layouts/partials/commento.html b/layouts/partials/commento.html
index 54e7589..d4c075e 100644
--- a/layouts/partials/commento.html
+++ b/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>
--
Gitblit v1.10.0