Shortcode for Hugo to display the replies to a Fediverse-thread as blog comments.
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.
 
 

11 lines
529 B

  1. {{ $instance := .Get "instance" | default "" }}
  2. {{ $status_id := .Get "status_id" | default "" }}
  3. {{ partial "mastodon-api-comments-scripts.html" . }}
  4. <style type="text/css">.mastodon-api-comment-avatar,.mastodon-api-comment-emoji{height:1em;}</style>
  5. <div id="mastodon-api-comments_{{ $status_id }}" class="mastodon-api-comments"></div>
  6. <noscript><p>Comments only work with JavaScript enabled.</p></noscript>
  7. <script type="application/javascript">
  8. fetch_mastodon_api_comments("{{ $instance }}", "{{ $status_id }}");
  9. </script>