Skip to content

Latest commit

 

History

History

toot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Mastodon Toot integration

Usage

This shortcode will convert {{<toot link="https://mastodon.instance/thetoot">}} into this :

<div style="text-align:center;">
<iframe src="{{ $link }}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script src="https://mastodon.instance/embed.js" async="async"></script>
</div>

Example :

{{<toot link="https://fosstodon.org/@Wivik/107645377769254953">}}

Will render :

toot

Install

Copy the content of the shortcodes/ folder into on of these folders (order by Hugo's precedence):

  1. /layouts/shortcodes/toot.html
  2. /themes/YOURTHEME/layouts/shortcodes/toot.html