website/themes/datacoop2020/layouts/shortcodes/mastodon.html
Benjamin Bach 2121cdca5f
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
Colors and fonts for the new data.coop theme
2020-04-05 23:03:14 +02:00

9 lines
386 B
HTML

{{ .Page.Scratch.Set "include_mastodon" true }}
{{ $width := .Get "width" | default "400" }}
{{ $height := .Get "height" | default "333"}}
{{ $status := .Get "status" | default "false" }}
{{ if eq ($status) "false" }}
{{ else }}
<iframe src= "{{ $status }}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="{{ $width }}" height="{{ $height }}"></iframe>
{{ end }}