diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index dc0fe94f..2a43655e 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -212,6 +212,11 @@ plugins_js = [] shortname = "" # Paste the shortname from your Disqus dashboard. show_count = true # Show comment count in page header? (true/false) + # Configuration of Commento. + [comments.commento] + # If self-hosting Commento, enter its URL here (e.g. "https://commento.?.com"), otherwise leave empty. + url = "" + ############################ ## Search ############################ diff --git a/layouts/partials/comments/commento.html b/layouts/partials/comments/commento.html index 8d9a1975..cacf3a54 100644 --- a/layouts/partials/comments/commento.html +++ b/layouts/partials/comments/commento.html @@ -1,2 +1,3 @@
- +{{ $url := (printf "%s/js/commento.js" (site.Params.comments.commento.url | default "https://cdn.commento.io")) }} +