Replies: 2 comments 1 reply
-
I've raised a Pull Request titled "feat: support self-hosted Commento via config param #874". |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
That makes sense, but: There is a method named default in GoHugo. Something like this looks better: I am not sure how commento.io works; it might make sense to have the full path to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request: Support self-hosted Commento in Ananke
Background
The
Ananketheme currently provides integration with the Commento comment system, but it always useshttps://cdn.commento.io/as the service endpoint.However, not all users want to rely on the hosted service at commento.io (which is paid). Many users (including myself) prefer to self-host Commento.
Problem
Currently, the source file
themes/ananke/layouts/partials/commento.htmlcontains the following code:The Ananke theme always loads Commento from
https://cdn.commento.io.Even if the user configures a
commentoUrlparameter inhugo.toml, it will not be read.As a result, users running their own Commento instance cannot load it on their pages.
Expected behavior
Users should be able to specify their own Commento service endpoint in
hugo.toml, for example:Then the blog pages should correctly load the corresponding comment box at the bottom.
Proposed implementation
I modified
layouts/partials/commento.htmlto support using the user-definedcommentoUrlif provided, and fall back to the defaultcdn.commento.iootherwise:Benefits
cdn.commento.io).Additional context
I have tested this implementation locally and confirmed that it works as expected.
If the maintainers agree with this approach, I am happy to submit a PR to merge this change into
Ananke.Beta Was this translation helpful? Give feedback.
All reactions