Hugo theme component for scraping comments on a Mastodon post containing a site's address
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2019 Max Mehl <>
SPDX-FileCopyrightText: 2019 Björn Schießle
{{ if ne true }}
<div class="comments-container">
<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
<div id="statistics">
<div id="like-count-container"></div><div id="reblog-count-container"></div><div id="reply-count-container"></div>
<div class="clear"></div>
<div id="comments"></div>
<div class="clear"></div>
<div id="reference"></div>
{{ end }}
<script>var RelPermalink="{{ .RelPermalink }}"</script>
<script>var MastodonUser="{{ .Site.Params.mastodoncomments.user }}"</script>
<script>var BlogRegex="{{ .Site.Params.mastodoncomments.regex }}"</script>
<script>var CommentsContact="{{ }}"</script>