Create mastodon embed shortcode
This shortcode can be used as follows: ``` {{<mastodon server="" user="" id="">}} ``` It defaults to mastodon.social server. Closes #787
This commit is contained in:
parent
80205a7117
commit
df95f12490
1 changed files with 1 additions and 0 deletions
1
layouts/shortcodes/mastodon.html
Normal file
1
layouts/shortcodes/mastodon.html
Normal file
|
@ -0,0 +1 @@
|
|||
<iframe src="https://{{.Get "server" | default "mastodon.social"}}/@{{.Get "user"}}/{{.Get "id"}}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script src="https://{{.Get "server" | default "mastodon.social"}}/embed.js" async="async"></script>
|
Loading…
Add table
Add a link
Reference in a new issue