diff --git a/README.md b/README.md index a5f6b83c..69769dc9 100644 --- a/README.md +++ b/README.md @@ -180,10 +180,33 @@ paige_date_format: "2006 January 2" # Hugo date format for page dates paige_fathom_id: "123456" # usefathom.com account ID paige_hide_theme_comment: true # Don't put a link to this project in a code comment paige_hide_theme_link: true # Don't put a link to this project in the footer + +# Analytics paige_matomo_id: "123456" # matomo.org account ID paige_matomo_url: "https://example.com/123456" # matomo.org account URL paige_plausible_id: "123456" # plausible.io account ID paige_yandex_id: "123456" # metrica.yandex.com account ID + +# Comments +paige: + comments: + cactus: # cactus.chat + account_id: "123456" + commento: # commento.io + script_url: "https://example.com/script.js" + hyvor: # hyvor.com + account_id: "123456" + intensedebate: # intensedebate.com + account_id: "123456" + isso: # isso-comments.de + script_url: "https://example.com/script.js" + remark42: # remark42.com + host_url: "https://example.com" + site_id: "123456" + replybox: # getreplybox.com + account_id: "123456" + utterances: # utteranc.es + github_repo: "example/foo" ``` If you set either `paige_hide_theme_comment` or `paige_hide_theme_link`, please credit this project in a post to help others find it. diff --git a/i18n/en.yaml b/i18n/en.yaml index f85358c3..052bf70b 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,3 +1,6 @@ +paige_comments_noscript: + other: JavaScript is required for comments. + paige_search_button: other: Search diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a8206344..3c5114e5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,3 +1,123 @@ {{ define "main" }} {{ partial "paige-article.html" . }} +{{ template "_internal/disqus.html" . }} +{{ if .Site.Params.paige.comments.cactus }} +
+ + +
+ + +
+{{ end }} +{{ with .Site.Params.paige.comments.commento }} +
+
+ + +
+{{ end }} +{{ if .Site.Params.paige.comments.graphcomment }} +
+
+ + +
+{{ end }} +{{ if .Site.Params.paige.comments.hyvor }} +
+
+ + + +
+{{ end }} +{{ if .Site.Params.paige.comments.intensedebate }} +
+ + + + +
+{{ end }} +{{ with .Site.Params.paige.comments.isso }} +
+ +
+ +
+
+{{ end }} +{{ with .Site.Params.paige.comments.muut }} +
+ Comments + + +
+{{ end }} +{{ if .Site.Params.paige.comments.remark42 }} +
+
+ + + +
+{{ end }} +{{ if .Site.Params.paige.comments.replybox }} +
+
+ + + +
+{{ end }} +{{ with .Site.Params.paige.comments.utterances }} +
+ + +
+{{ end }} {{ end }}