1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-18 22:05:29 -04:00

iframe shortcode for valid AMP

This commit is contained in:
2020-04-30 07:53:08 -04:00
parent 6854129108
commit 35bfbb517c
5 changed files with 15 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
<amp-iframe
sandbox="allow-scripts allow-same-origin"
layout="responsive"
width="{{ .Get "width" }}"
height="{{ .Get "height" }}"
src="{{ .Get "src" }}">
</amp-iframe>

View File

@@ -0,0 +1 @@
iframe.html

View File

@@ -0,0 +1,3 @@
<div class="embed iframe">
<iframe src="{{ .Get "src" }}"></iframe>
</div>

View File

@@ -0,0 +1 @@
iframe.html