mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-09 21:49:41 +00:00
Add iframe shortcode
This commit is contained in:
parent
900219b281
commit
2eec248847
10
layouts/shortcodes/iframe.html
Normal file
10
layouts/shortcodes/iframe.html
Normal 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 }}
|
Loading…
Reference in a new issue