Create mastodon embed shortcode (#788)
This shortcode can be used as follows: ``` {{<mastodon server="" user="" id="">}} ``` It defaults to mastodon.social server. Closes #787 Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
a1188673ad
commit
1dbe8aca45
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