hugo-mastodon-api-comments/mastodon-api-comments.html

10 lines
434 B
HTML
Raw Normal View History

2019-10-31 05:34:19 +01:00
{{ $instance := .Get "instance" | default "false" }}
{{ $status_id := .Get "status_id" | default "false" }}
{{ partial "mastodon-api-comments-scripts.html" . }}
<p id="mastodon-api-comments_{{ $status_id }}" class="mastodon-api-comments"></p>
2019-10-31 08:52:15 +01:00
<noscript><p>Comments only work with JavaScript enabled.</p></noscript>
2019-10-31 05:34:19 +01:00
<script type="application/javascript">
fetch_mastodon_api_comments("{{ $instance }}", "{{ $status_id }}");
2019-10-31 05:34:19 +01:00
</script>