mastodon.html 238 Bytes
Newer Older
1 2 3
{{- $src := .Get 0 -}}
<iframe src="{{ $src }}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400"></iframe>
<script src="{{ $src | replaceRE "^https://([^/]+).*" "https://$1/embed.js" }}" async="async"></script>