6 Commits

Author SHA1 Message Date
a93452bd90 Merge pull request 'enable comments' (#3) from comments into main
Reviewed-on: #3
2025-11-26 23:00:26 +00:00
caef302171 add privacy policy link
- Google in particular demands this.
2025-11-26 15:25:25 -07:00
dca59d5369 enable comments on d-b.ca posts 2025-11-25 09:56:04 -07:00
bf1498d3c5 Merge pull request 'Update config' (#2) from config into main
Reviewed-on: #2
2025-11-20 20:01:33 +00:00
0ffe8c334e add email address 2025-11-20 12:03:13 -07:00
9bb243e2ca add google verification ID 2025-11-20 12:02:11 -07:00
4 changed files with 42 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ title = "Drew Bowering"
[params.author] [params.author]
name = "Drew Bowering" name = "Drew Bowering"
# email = "drew@d-b.ca" email = "drew@d-b.ca"
image = "img/DrewBowering.jpg" image = "img/DrewBowering.jpg"
# imageQuality = 96 # imageQuality = 96
headline = "IT Architect, Developer, Canoeist, Tubist" headline = "IT Architect, Developer, Canoeist, Tubist"

View File

@@ -67,3 +67,7 @@
# name = "Categories" # name = "Categories"
# pageRef = "categories" # pageRef = "categories"
# weight = 20 # weight = 20
[[footer]]
name = "Privacy"
url = "https://comment.d-b.ca/web/privacy.html"

View File

@@ -56,6 +56,7 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
showDate = true showDate = true
showViews = false showViews = false
showLikes = false showLikes = false
showComments = true
showDateOnlyInArticle = false showDateOnlyInArticle = false
showDateUpdated = false showDateUpdated = false
showAuthor = true showAuthor = true
@@ -156,7 +157,7 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
# globalWidgetPosition = "Right" # globalWidgetPosition = "Right"
[verification] [verification]
# google = "" google = "w3v6pJQgijQRPkhgVV6SIOJEPIpAR9ase26ri4tPkS8"
# bing = "" # bing = ""
# pinterest = "" # pinterest = ""
# yandex = "" # yandex = ""
@@ -164,4 +165,10 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
[rssnext] [rssnext]
# feedId = "" # feedId = ""
# userId = "" # userId = ""
[remark42]
enabled = true
host = "https://comment.d-b.ca"
site = "d-b.ca"
locale = "en"

View File

@@ -0,0 +1,28 @@
{{- with .Site.Params.remark42 -}}
<hr>
<p><b>Comments and questions are welcome!</b> <i>You can use your email address to Sign In (your email address is not publicly displayed), or you can use your Google or GitHub account. All comment data is hosted locally by d-b.ca and is not tracked. Please refer to the <a href='https://remark42.com' target="_blank"><b>Remark42</b></a> <a href='https://remark42.com/privacy/' target="_blank">Privacy Policy</a> for more information.</i></p>
<div id="remark42"></div>
<script>
var remark_config = {
host: '{{ .host }}',
site_id: '{{ .site }}',
components: ['embed'],
url: '{{ $.Permalink }}',
theme: document.documentElement.classList.contains("dark") ? 'dark' : 'light',
};
document.getElementById("appearance-switcher").addEventListener('click', event => {
window.REMARK42.changeTheme(document.documentElement.classList.contains("dark") ? 'light' : 'dark');
});
!function(e, n) {
for (var o = 0; o < e.length; o++) {
var r = n.createElement('script'),
c = '.js',
d = n.head || n.body;
'noModule' in r ? (r.type = 'module', c = '.mjs') : r.async = !0, r.defer = !0, r.src = remark_config.host + '/web/' + e[o] + c, d.appendChild(r)
}
}(remark_config.components || ['embed'], document);
</script>
{{- end -}}