aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-08 21:20:38 -0500
committertdro <tdro@noreply.example.com>2022-12-08 21:20:38 -0500
commit77989bed6907609f8e72f774a3be88ca770ff468 (patch)
tree930eae055c7c5da778ffaa61df765dc5f5af0f8a
parent47af9b72d0053deec5cd0ebf1ad5c26d1477b484 (diff)
downloadcanory-77989bed6907609f8e72f774a3be88ca770ff468.tar.gz
canory-77989bed6907609f8e72f774a3be88ca770ff468.tar.bz2
canory-77989bed6907609f8e72f774a3be88ca770ff468.zip
themes/default/layouts/shortcodes: No scrolling on select iframes
-rw-r--r--themes/default/layouts/shortcodes/self.html1
-rw-r--r--themes/default/layouts/shortcodes/wikipedia.html4
2 files changed, 4 insertions, 1 deletions
diff --git a/themes/default/layouts/shortcodes/self.html b/themes/default/layouts/shortcodes/self.html
index 2f0d7eb..6036e07 100644
--- a/themes/default/layouts/shortcodes/self.html
+++ b/themes/default/layouts/shortcodes/self.html
@@ -10,6 +10,7 @@
<self-embed>
<iframe
height="165"
+ scrolling="no"
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 65fa399..dd33a55 100644
--- a/themes/default/layouts/shortcodes/wikipedia.html
+++ b/themes/default/layouts/shortcodes/wikipedia.html
@@ -7,7 +7,9 @@
-}}
<wikipedia-container title="{{ $title }}">
- <iframe loading="lazy"
+ <iframe
+ loading="lazy"
+ scrolling="no"
height="300"
src="https://en.m.wikipedia.org/wiki/{{ $id }}"
title="{{ $title }}"