Add iframe shortcode

This commit is contained in:
ItsDrike 2022-05-23 18:54:15 +02:00
parent 900219b281
commit 2eec248847
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -0,0 +1,10 @@
{{ if .Inner }}
<figure>
<iframe src='{{ .Get "src" }}' class='{{ .Get "class" }}'></iframe>
<figcaption>
<small>{{ .Inner }} <a href='{{ .Get "src" }}'>View Full</a></small>
</figcaption>
</figure>
{{ else }}
<iframe src='{{ .Get "src" }}' class='{{ .Get "class" }}'></iframe>
{{ end }}