Commit 4c1e0d4b authored by julientaq's avatar julientaq
Browse files

first test for comments using talkyard

parent 152accf8
......@@ -3,6 +3,12 @@ languageCode = "en-us"
title = "pagedjs, house of HTML printing"
theme = "pagedjs"
# relativeURLs = true
[params]
talkyardServerUrl = "https://comments-for-pagedjs-org.talkyard.net"
talkyardScriptUrl = "https://c1.ty-cdn.net/-/talkyard-comments.min.js"
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
......
# Paged.js website
Welcome to paged.js website, using Hugo static manager and custom theme :)
TO DO
- add commenting engine (check https://www.talkyard.io/)
- add netlify CMS for non developers
{"Target":"css/main.min.67feb889fa97c24e4a9b9bb9e7602a89.css","MediaType":"text/css","Data":{"Integrity":"md5-Z/64ifqXwk5Km5u552AqiQ=="}}
\ No newline at end of file
{"Target":"css/main.min.19e3f8eb3807fc01ac78908e6351a275.css","MediaType":"text/css","Data":{"Integrity":"md5-GeP46zgH/AGseJCOY1GidQ=="}}
\ No newline at end of file
......@@ -237,4 +237,5 @@ main article .menu {
text-align: right;
}
}
\ No newline at end of file
}
......@@ -89,7 +89,7 @@ article {
p, ul, ol , h1, h2, h3, h4, h5, h6 , blockquote {
grid-column: main/end;
}
pre, table, .highlight {
pre, table, .highlight, .talkyard-comments {
grid-column: left/end
}
.signature {
......@@ -135,4 +135,8 @@ article {
}
}
.talkyard-comments {
margin-top: 100px !important;
}
\ No newline at end of file
......@@ -15,6 +15,18 @@
{{ .Content }}
<script>talkyardServerUrl='{{ .Site.Params.talkyardServerUrl }}';</script>
<script async defer src="{{ .Site.Params.talkyardScriptUrl }}"></script>
<!-- You can specify a per page discussion id on the next line, if your URLs might change. -->
<div class="talkyard-comments" data-discussion-id="{{ .Params.discussionId }}" style="margin-top: 45px;">
<noscript>Please enable Javascript to view comments.</noscript>
<p style="margin-top: 25px; opacity: 0.9; font-size: 96%">Comments powered by
<a href="https://www.talkyard.io">Talkyard</a>.</p>
</div>
<aside class="paginator {{ if and .NextInSection .PrevInSection }} both{{ end }}">
{{ with .NextInSection }}
<a class="previous" href="{{.Permalink}}">{{.Title}}</a>
......
......@@ -17,6 +17,17 @@
</div>
</header>
{{ .Content }}
<script>talkyardServerUrl='{{ .Site.Params.talkyardServerUrl }}';</script>
<script async defer src="{{ .Site.Params.talkyardScriptUrl }}"></script>
<!-- You can specify a per page discussion id on the next line, if your URLs might change. -->
<div class="talkyard-comments" data-discussion-id="{{ .Params.discussionId }}" style="margin-top: 45px;">
<noscript>Please enable Javascript to view comments.</noscript>
<p style="margin-top: 25px; opacity: 0.9; font-size: 96%">Comments powered by
<a href="https://www.talkyard.io">Talkyard</a>.</p>
</div>
<aside class="paginator {{ if and .NextInSection .PrevInSection }} both{{ end }}">
{{ with .NextInSection }}
<a class="previous" href="{{.Permalink}}">{{.Title}}</a>
......@@ -32,6 +43,11 @@
{{ end }}
</aside>
</article>
</main>
{{ end }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment