Commit 3fc5dd10 authored by Eugen Rochko's avatar Eugen Rochko

Add Mastodon embed shortcode

parent ad09c8f0
{{- $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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment