Fix comments titles and only enable comments to blog posts
This commit is contained in:
parent
48aa03bf10
commit
ad66c6ab1e
2 changed files with 4 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
|||
</ul>
|
||||
{{ end }}
|
||||
|
||||
{{ if in .File.Dir "blog" }}
|
||||
<h3>Comments</h3>
|
||||
<script
|
||||
data-isso="//comments.redstrate.com/"
|
||||
|
@ -36,9 +37,10 @@
|
|||
data-isso-reveal-on-click="5"
|
||||
src="//comments.redstrate.com/js/embed.min.js"></script>
|
||||
|
||||
<section id="isso-thread">
|
||||
<section id="isso-thread" data-title="{{ .Title }}" data-isso-id="{{ .File.ContentBaseName }}">
|
||||
<noscript>Javascript needs to be activated to view comments.</noscript>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.comments }}
|
||||
<h3>Mastodon Comments</h3>
|
||||
|
|
|
@ -5,6 +5,6 @@ data-isso-avatar="false"
|
|||
data-isso-vote="false"
|
||||
src="//comments.redstrate.com/js/embed.min.js"></script>
|
||||
|
||||
<section id="isso-thread">
|
||||
<section id="isso-thread" data-title="Guestbook" data-isso-id="/guestbook">
|
||||
<noscript>Javascript needs to be activated to view comments.</noscript>
|
||||
</section>
|
Loading…
Add table
Reference in a new issue