only show comments on non-pages, and add noscript text
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
{{ if ne .Params.page true }}
|
||||
<div class="comments-container">
|
||||
<h5>Comments</h5>
|
||||
<noscript>
|
||||
<p class="bg-info" style="text-align: center; padding: 5px;">
|
||||
Comments are only visible with JavaScript enabled. They are
|
||||
dynamically loaded from Mastodon. The code to display the
|
||||
comments is Free Software and <a
|
||||
href="https://src.mehl.mx/mxmehl/hugo-mastodon-comments">completely
|
||||
transparent</a>.
|
||||
</p>
|
||||
</noscript>
|
||||
<div id="statistics">
|
||||
<div id="like-count-container"></div><div id="reblog-count-container"></div><div id="reply-count-container"></div>
|
||||
</div>
|
||||
@@ -8,6 +18,7 @@
|
||||
<div class="clear"></div>
|
||||
<div id="reference"></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<script>var RelPermalink="{{ .RelPermalink }}"</script>
|
||||
<script>var MastodonUser="{{ .Site.Params.mastodoncomments.user }}"</script>
|
||||
|
||||
Reference in New Issue
Block a user