aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/shortcodes')
-rw-r--r--themes/default/layouts/shortcodes/abbr.html2
-rw-r--r--themes/default/layouts/shortcodes/animate.html2
-rw-r--r--themes/default/layouts/shortcodes/odysee.html3
-rw-r--r--themes/default/layouts/shortcodes/spoiler.html2
-rw-r--r--themes/default/layouts/shortcodes/youtube.html13
5 files changed, 14 insertions, 8 deletions
diff --git a/themes/default/layouts/shortcodes/abbr.html b/themes/default/layouts/shortcodes/abbr.html
index bad8895..2a87233 100644
--- a/themes/default/layouts/shortcodes/abbr.html
+++ b/themes/default/layouts/shortcodes/abbr.html
@@ -2,7 +2,7 @@
{{- $title := default "Too long, didn't read" (.Get "title" | default (.Get 1)) -}}
{{- $hash := print (truncate 8 "" (sha256 $abbr)) .Ordinal -}}
-<input hidden type="checkbox" id="abbr-{{ $hash }}" />
+<input hidden="" type="checkbox" id="abbr-{{ $hash }}" />
{{- /* This comment removes trailing newlines and white spaces. */ -}}
<abbr title="{{ $title }}"><label for="abbr-{{ $hash }}">{{ $abbr | markdownify }}</label></abbr>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
diff --git a/themes/default/layouts/shortcodes/animate.html b/themes/default/layouts/shortcodes/animate.html
index 5d72671..b245596 100644
--- a/themes/default/layouts/shortcodes/animate.html
+++ b/themes/default/layouts/shortcodes/animate.html
@@ -3,7 +3,7 @@
{{- $letters := split $text "" -}}
-<text-animation {{ $type }}>
+<text-animation {{ $type }}="">
{{- range $value, $letter := $letters -}}
<span style="--frame:{{ $value }}">{{ $letter }}</span>
{{- end -}}
diff --git a/themes/default/layouts/shortcodes/odysee.html b/themes/default/layouts/shortcodes/odysee.html
index 0f2899e..cca7e9c 100644
--- a/themes/default/layouts/shortcodes/odysee.html
+++ b/themes/default/layouts/shortcodes/odysee.html
@@ -8,7 +8,8 @@
id="odysee-iframe"
src="{{ $url }}"
title="{{ $title }}"
- allowfullscreen>
+ allowfullscreen=""
+ >
</iframe>
<footer>{{ $caption | markdownify }}</footer>
</odysee-video>
diff --git a/themes/default/layouts/shortcodes/spoiler.html b/themes/default/layouts/shortcodes/spoiler.html
index ebc3643..5a9462d 100644
--- a/themes/default/layouts/shortcodes/spoiler.html
+++ b/themes/default/layouts/shortcodes/spoiler.html
@@ -6,7 +6,7 @@
{{- $text = .Inner -}}
{{- end -}}
-<input hidden type="checkbox" id="spoiler-text-{{ $hash }}" />
+<input hidden="" type="checkbox" id="spoiler-text-{{ $hash }}" />
<s title="{{ $title }}">
<label for="spoiler-text-{{ $hash }}">{{ $text | markdownify }}</label>
diff --git a/themes/default/layouts/shortcodes/youtube.html b/themes/default/layouts/shortcodes/youtube.html
index 99612ed..9ec1cfb 100644
--- a/themes/default/layouts/shortcodes/youtube.html
+++ b/themes/default/layouts/shortcodes/youtube.html
@@ -1,10 +1,12 @@
-{{- $url := "www.youtube-nocookie.com" -}}
{{- $id := default "aqz-KE-bpKQ" (.Get "id" | default (.Get 0)) -}}
{{- $title := default "YouTube Video" (.Get "title" | default (.Get 1)) -}}
{{- $start := default "" (.Get "start" | default (.Get 2)) -}}
{{- $end := default "" (.Get "end" | default (.Get 3)) -}}
{{- $muted := default "" (.Get "muted" | default (.Get 4)) -}}
+{{- $url := "www.youtube-nocookie.com" -}}
+{{- $controls := "?controls=1" -}}
+
{{- if (and $start $end) -}}
{{ $start = print "&start=" $start }}
{{ $end = print "&end=" $end }}
@@ -15,11 +17,14 @@
{{- end -}}
<youtube-video>
- <iframe loading="lazy"
+ <iframe
+ allowfullscreen=""
height="300"
+ loading="lazy"
+ title="{{ $title }}"
sandbox="allow-scripts allow-same-origin"
- src="https://{{ $url }}/embed/{{ $id }}{{ "?controls=1" }}{{ $start }}{{ $end }}{{ $muted }}"
- allowfullscreen title="{{ $title }}">
+ src="https://{{ $url }}/embed/{{ $id }}{{ $controls }}{{ $start }}{{ $end }}{{ $muted }}"
+ >
</iframe>
<footer>
{{ $title | markdownify }}