diff options
author | tdro <tdro@noreply.example.com> | 2022-12-08 21:20:38 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-08 21:20:38 -0500 |
commit | 77989bed6907609f8e72f774a3be88ca770ff468 (patch) | |
tree | 930eae055c7c5da778ffaa61df765dc5f5af0f8a /themes | |
parent | 47af9b72d0053deec5cd0ebf1ad5c26d1477b484 (diff) | |
download | canory-77989bed6907609f8e72f774a3be88ca770ff468.tar.gz canory-77989bed6907609f8e72f774a3be88ca770ff468.tar.bz2 canory-77989bed6907609f8e72f774a3be88ca770ff468.zip |
themes/default/layouts/shortcodes: No scrolling on select iframes
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/shortcodes/self.html | 1 | ||||
-rw-r--r-- | themes/default/layouts/shortcodes/wikipedia.html | 4 |
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 }}" |