aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-12 04:16:55 -0400
committertdro <tdro@noreply.example.com>2022-06-12 04:16:55 -0400
commit1978be8ad28bbdc6eec325727896e65448c65982 (patch)
tree200c287102c70af70ee75cde8540660bcdc4395e /themes/default/layouts/shortcodes
parent3e526f914bc8ad7f81db441f8a661f5bd561922d (diff)
downloadcanory-1978be8ad28bbdc6eec325727896e65448c65982.tar.gz
canory-1978be8ad28bbdc6eec325727896e65448c65982.tar.bz2
canory-1978be8ad28bbdc6eec325727896e65448c65982.zip
themes/default/layouts/shortcodes: Set height on self and wikipedia iframes
To prepare iframes for responsivity across most devices.
Diffstat (limited to 'themes/default/layouts/shortcodes')
-rw-r--r--themes/default/layouts/shortcodes/self.html1
-rw-r--r--themes/default/layouts/shortcodes/wikipedia.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/themes/default/layouts/shortcodes/self.html b/themes/default/layouts/shortcodes/self.html
index 5151d6c..2f0d7eb 100644
--- a/themes/default/layouts/shortcodes/self.html
+++ b/themes/default/layouts/shortcodes/self.html
@@ -9,6 +9,7 @@
<self-embed>
<iframe
+ height="165"
sandbox="{{ $sandbox }}"
src="{{ .Site.BaseURL }}{{ $url }}"
title="{{ $title }}"
diff --git a/themes/default/layouts/shortcodes/wikipedia.html b/themes/default/layouts/shortcodes/wikipedia.html
index eab4a7b..65fa399 100644
--- a/themes/default/layouts/shortcodes/wikipedia.html
+++ b/themes/default/layouts/shortcodes/wikipedia.html
@@ -8,9 +8,9 @@
<wikipedia-container title="{{ $title }}">
<iframe loading="lazy"
+ height="300"
src="https://en.m.wikipedia.org/wiki/{{ $id }}"
title="{{ $title }}"
- height="300"
></iframe>
<footer>{{ $caption | markdownify }}</footer>
</wikipedia-container>