1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-12-03 04:18:57 -05:00

bring AMP pages up to par with real layout

This commit is contained in:
2020-05-01 23:54:02 -04:00
parent 5e51b3a7ac
commit 29320aa86f
4 changed files with 58 additions and 33 deletions

View File

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

View File

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