From e31eaa65ff5e2490393879aa44cee4b654b2d4b4 Mon Sep 17 00:00:00 2001 From: Rubel Hossain Date: Mon, 8 Jun 2026 16:09:59 +0600 Subject: [PATCH] chore: added open-remark comment --- README.md | 2 +- exampleSite/config/_default/module.toml | 3 +++ exampleSite/config/_default/params.toml | 6 ++++++ exampleSite/hugo.toml | 3 --- layouts/blog/single.html | 7 ++++--- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 291238b..09f8658 100755 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ We have included almost everything you need to start your Hugo project. Let's se - 📞 Support contact form - 📱 Fully responsive - 📝 Write and update content in Markdown -- 💬 Disqus Comment +- 💬 Open-Remark Comment - 🔳 Syntax Highlighting ### 📄 15+ Pre-designed Pages diff --git a/exampleSite/config/_default/module.toml b/exampleSite/config/_default/module.toml index 53e0b87..69fe826 100644 --- a/exampleSite/config/_default/module.toml +++ b/exampleSite/config/_default/module.toml @@ -90,6 +90,9 @@ path = "github.com/gethugothemes/hugo-modules/seo-tools/site-verifications" [[imports]] path = "github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager" +[[imports]] +path = "github.com/gethugothemes/hugo-modules/components/open-remark" + # [[imports]] # path = "github.com/gethugothemes/hugo-modules/seo-tools/baidu-analytics" diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 0546af5..bd27a30 100755 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -122,3 +122,9 @@ enable = false # mailchimp subsciption mailchimp_form_action = "https://gmail.us4.list-manage.com/subscribe/post?u=463ee871f45d2d93748e77cad&id=a0a2c6d074" # replace this url with yours mailchimp_form_name = "b_463ee871f45d2d93748e77cad_a0a2c6d074" + +# OpenRemark Comments +[open_remark] +enable = true +site_key = "cmq51sse6000504l2761vcywi" # your site key from the OpenRemark dashboard +embed_url = "https://open-remark.zeon.studio/embed.js" # OpenRemark embed.js URL | Make sure it didn't change diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index f1453a2..451f79a 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -23,9 +23,6 @@ defaultContentLanguageInSubdir = false [services.googleAnalytics] ID = 'G-MEASUREMENT_ID' # see https://gohugo.io/templates/internal/#configure-google-analytics -[services.disqus] -shortname = 'themefisher-template' # we use disqus to show comments in blog posts . To install disqus please follow this tutorial https://portfolio.peter-baumgartner.net/2017/09/10/how-to-install-disqus-on-hugo/ - ########################## Permalinks ############################ [permalinks.page] "pages" = "/:slugorcontentbasename/" diff --git a/layouts/blog/single.html b/layouts/blog/single.html index a790834..54bc864 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -67,12 +67,13 @@ {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" .Title "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false "Reddit" false) }} - - {{ if site.Config.Services.Disqus.Shortname }} + + {{ if site.Params.open_remark.enable }}
- {{ partial "disqus.html" . }} + {{ partial "open-remark.html" . }}
{{ end }} +