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:
Mariatta 2023-10-06 12:06:16 -07:00 committed by GitHub
parent a1188673ad
commit 1dbe8aca45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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>