Skip to content

Commit 78f0284

Browse files
committed
Add talkyard.net comment system
1 parent 5f2ca4d commit 78f0284

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ theme = "hugo-blog-awesome"
155155
background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background)
156156
display = "standalone"
157157

158+
# MARK: Params
158159

159160
# Allow to override `browserconfig.xml` params (configuration for windows embedded browsers)
160161
[params.browserconfig]
@@ -196,6 +197,10 @@ url = "https://iosdev.space/@dandylyons"
196197
name = "medium"
197198
url = "https://medium.com/@_DandyLyons"
198199

200+
[params]
201+
talkyardServerUrl = "https://site-27u7pjoswd.talkyard.net"
202+
talkyardScriptUrl = "https://c1.ty-cdn.net/-/talkyard-comments.min.js"
203+
199204
[sitemap]
200205
changefreq = "weekly"
201206
filename = "sitemap.xml"

layouts/partials/comments.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- if .Site.Config.Services.Disqus.Shortname -}}
2+
<hr style="margin-top: 40px; margin-bottom: 40px;" />
3+
{{ template "_internal/disqus.html" . }}
4+
{{- end -}}
5+
6+
<!-- Talkyard comments widget from: https://comments-for-dandylyons.talkyard.net -->
7+
<!-- https://blog-comments.talkyard.io/ -->
8+
<script>talkyardServerUrl='{{ .Site.Params.talkyardServerUrl }}';</script>
9+
<script async defer src="{{ .Site.Params.talkyardScriptUrl }}"></script>
10+
<!-- You can specify a per page discussion id on the next line, if your URLs might change. -->
11+
<div class="talkyard-comments" data-discussion-id="{{ .Params.discussionId }}" style="margin-top: 45px;">
12+
<noscript>Please enable Javascript to view comments.</noscript>
13+
<p style="margin-top: 25px; opacity: 0.9; font-size: 96%">Comments powered by
14+
<a href="https://www.talkyard.io">Talkyard</a>.</p>
15+
</div>

0 commit comments

Comments
 (0)