aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-01 21:40:28 -0400
committertdro <tdro@noreply.example.com>2022-06-01 21:40:28 -0400
commit022f1cba18c74d90fd45b6cbbd7a5c774a14b2ea (patch)
treedf674b4b4eafafff8673e9949d2f1e081c3d0c73
parent4bbb269e3a6da76925c10e505954bbb3ea4bed26 (diff)
downloadcanory-022f1cba18c74d90fd45b6cbbd7a5c774a14b2ea.tar.gz
canory-022f1cba18c74d90fd45b6cbbd7a5c774a14b2ea.tar.bz2
canory-022f1cba18c74d90fd45b6cbbd7a5c774a14b2ea.zip
assets/css/default: Hide main footer in self embeds only
Remove illegal figure captions, replace with footers.
-rw-r--r--assets/css/default.css2
-rw-r--r--themes/default/layouts/shortcodes/iframe.html2
-rw-r--r--themes/default/layouts/shortcodes/odysee.html2
-rw-r--r--themes/default/layouts/shortcodes/pdf.html2
-rw-r--r--themes/default/layouts/shortcodes/self.html2
-rw-r--r--themes/default/layouts/shortcodes/tweet.html2
-rw-r--r--themes/default/layouts/shortcodes/wikipedia.html2
-rw-r--r--themes/default/layouts/shortcodes/youtube.html4
8 files changed, 9 insertions, 9 deletions
diff --git a/assets/css/default.css b/assets/css/default.css
index 23c6aa7..5230126 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -1680,7 +1680,7 @@ kbd {
:target::before {
display: none;
}
- footer,
+ main > footer,
column-middle nav,
navigation-separator hr[hidden] {
display: none;
diff --git a/themes/default/layouts/shortcodes/iframe.html b/themes/default/layouts/shortcodes/iframe.html
index cd72763..232853c 100644
--- a/themes/default/layouts/shortcodes/iframe.html
+++ b/themes/default/layouts/shortcodes/iframe.html
@@ -9,5 +9,5 @@
src="{{ $url }}"
title="{{ $title }}"
></iframe>
- <figcaption>{{ $caption | markdownify }}</figcaption>
+ <footer>{{ $caption | markdownify }}</footer>
</iframe-embed>
diff --git a/themes/default/layouts/shortcodes/odysee.html b/themes/default/layouts/shortcodes/odysee.html
index 91f03c0..de9bd3a 100644
--- a/themes/default/layouts/shortcodes/odysee.html
+++ b/themes/default/layouts/shortcodes/odysee.html
@@ -10,5 +10,5 @@
title="{{ $title }}"
allowfullscreen>
</iframe>
- <figcaption>{{ $caption | markdownify }}</figcaption>
+ <footer>{{ $caption | markdownify }}</footer>
</odysee-video>
diff --git a/themes/default/layouts/shortcodes/pdf.html b/themes/default/layouts/shortcodes/pdf.html
index f766190..fd30841 100644
--- a/themes/default/layouts/shortcodes/pdf.html
+++ b/themes/default/layouts/shortcodes/pdf.html
@@ -7,5 +7,5 @@
sandbox="allow-scripts allow-presentation allow-same-origin"
src="https://docs.google.com/gview?url={{ $url }}&embedded=true">
</iframe>
- <figcaption>{{ $caption | markdownify }}</figcaption>
+ <footer>{{ $caption | markdownify }}</footer>
</pdf-container>
diff --git a/themes/default/layouts/shortcodes/self.html b/themes/default/layouts/shortcodes/self.html
index 078f517..2aee904 100644
--- a/themes/default/layouts/shortcodes/self.html
+++ b/themes/default/layouts/shortcodes/self.html
@@ -13,5 +13,5 @@
src="{{ .Site.BaseURL }}{{ $url }}"
title="{{ $title }}"
></iframe>
- <figcaption>{{ $caption | markdownify }}</figcaption>
+ <footer>{{ $caption | markdownify }}</footer>
</self-embed>
diff --git a/themes/default/layouts/shortcodes/tweet.html b/themes/default/layouts/shortcodes/tweet.html
index b4adfba..faf1f00 100644
--- a/themes/default/layouts/shortcodes/tweet.html
+++ b/themes/default/layouts/shortcodes/tweet.html
@@ -15,4 +15,4 @@
</script>
</twitter-tweet>
-<figcaption>{{ $caption }}</figcaption>
+<footer>{{ $caption }}</footer>
diff --git a/themes/default/layouts/shortcodes/wikipedia.html b/themes/default/layouts/shortcodes/wikipedia.html
index 7b9e51f..be91028 100644
--- a/themes/default/layouts/shortcodes/wikipedia.html
+++ b/themes/default/layouts/shortcodes/wikipedia.html
@@ -12,5 +12,5 @@
title="{{ $title }}"
height="300"
></iframe>
- <figcaption>{{ $caption | markdownify }}</figcaption>
+ <footer>{{ $caption | markdownify }}</footer>
</wikipedia-container>
diff --git a/themes/default/layouts/shortcodes/youtube.html b/themes/default/layouts/shortcodes/youtube.html
index 9af165d..f471b91 100644
--- a/themes/default/layouts/shortcodes/youtube.html
+++ b/themes/default/layouts/shortcodes/youtube.html
@@ -21,8 +21,8 @@
src="https://{{ $url }}/embed/{{ $id }}{{ "?controls=1" }}{{ $start }}{{ $end }}{{ $muted }}"
allowfullscreen title="{{ $title }}">
</iframe>
- <figcaption>
+ <footer>
{{ $title | markdownify }}:
{{ print "[Link](https://www.youtube.com/watch?v=" $id ")" | markdownify }}
- </figcaption>
+ </footer>
</youtube-video>