aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-04 03:58:16 -0400
committertdro <tdro@noreply.example.com>2022-06-04 03:58:16 -0400
commit49807a0d253e5df7c12990b16cd9c1ef6aef6dab (patch)
treebf7408fbd4e8af392e9ca7839e1824af1b05df97 /themes/default/layouts/shortcodes
parent8f60938e286d5b79c73b3bbdcc900aa28da2fe84 (diff)
downloadcanory-49807a0d253e5df7c12990b16cd9c1ef6aef6dab.tar.gz
canory-49807a0d253e5df7c12990b16cd9c1ef6aef6dab.tar.bz2
canory-49807a0d253e5df7c12990b16cd9c1ef6aef6dab.zip
themes/default/layouts/shortcodes: Wrap source links in parenthesis
Diffstat (limited to 'themes/default/layouts/shortcodes')
-rw-r--r--themes/default/layouts/shortcodes/imgur-video.html4
-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.html8
-rw-r--r--themes/default/layouts/shortcodes/video.html4
-rw-r--r--themes/default/layouts/shortcodes/wikipedia.html2
-rw-r--r--themes/default/layouts/shortcodes/youtube.html4
7 files changed, 13 insertions, 13 deletions
diff --git a/themes/default/layouts/shortcodes/imgur-video.html b/themes/default/layouts/shortcodes/imgur-video.html
index 8f99036..bdb087d 100644
--- a/themes/default/layouts/shortcodes/imgur-video.html
+++ b/themes/default/layouts/shortcodes/imgur-video.html
@@ -14,7 +14,7 @@
<a href="//imgur.com/{{ $id }}">imgur.com/{{ $id }}</a>
</noscript>
<footer>
- {{ $title | markdownify }}:
- {{ print "[Link](https://imgur.com/" $id ")" | markdownify }}
+ {{ $title | markdownify }}
+ ({{ print "[Link](https://imgur.com/" $id ")" | markdownify }})
</footer>
</imgur-video>
diff --git a/themes/default/layouts/shortcodes/odysee.html b/themes/default/layouts/shortcodes/odysee.html
index de9bd3a..0f2899e 100644
--- a/themes/default/layouts/shortcodes/odysee.html
+++ b/themes/default/layouts/shortcodes/odysee.html
@@ -1,6 +1,6 @@
{{- $url := default "https://odysee.com/$/embed/odysee/7a416c44a6888d94fe045241bbac055c726332aa" (.Get "url" | default (.Get 0)) -}}
{{- $title := default "Odysee Video" (.Get "title" | default (.Get 1)) -}}
-{{- $caption := default (print $title ": [Link](" $url ")") (.Get "caption" | default (.Get 2)) -}}
+{{- $caption := default (print $title " ([Link](" $url "))") (.Get "caption" | default (.Get 2)) -}}
<odysee-video>
<iframe
diff --git a/themes/default/layouts/shortcodes/pdf.html b/themes/default/layouts/shortcodes/pdf.html
index fd30841..824169b 100644
--- a/themes/default/layouts/shortcodes/pdf.html
+++ b/themes/default/layouts/shortcodes/pdf.html
@@ -1,6 +1,6 @@
{{- $url := default "https://www.gutenberg.org/files/98/old/2city12p.pdf" (.Get "url" | default (.Get 0)) -}}
{{- $title := default "PDF Document" (.Get "title" | default (.Get 1)) -}}
-{{- $caption := default (print $title ": [Download](" $url ")") (.Get "caption" | default (.Get 2)) -}}
+{{- $caption := default (print $title " ([Download](" $url "))") (.Get "caption" | default (.Get 2)) -}}
<pdf-container title="{{ $title }}">
<iframe loading="lazy"
diff --git a/themes/default/layouts/shortcodes/self.html b/themes/default/layouts/shortcodes/self.html
index 2aee904..5151d6c 100644
--- a/themes/default/layouts/shortcodes/self.html
+++ b/themes/default/layouts/shortcodes/self.html
@@ -1,7 +1,7 @@
-{{- $url := default "" (.Get "url" | default (.Get 0)) -}}
-{{- $title := default "Self Embed" (.Get "title" | default (.Get 1)) -}}
-{{- $caption := default (print $title ": [Link](" $url ")") (.Get "caption" | default (.Get 2)) -}}
-{{- $sandbox := default "allow-popups" (.Get "sandbox" | default (.Get 3)) -}}
+{{- $url := default "" (.Get "url" | default (.Get 0)) -}}
+{{- $title := default "Self Embed" (.Get "title" | default (.Get 1)) -}}
+{{- $caption := default (print $title " ([Link](" $url "))") (.Get "caption" | default (.Get 2)) -}}
+{{- $sandbox := default "allow-popups" (.Get "sandbox" | default (.Get 3)) -}}
{{- if (eq $url "") -}}
{{- $url = "/" -}}
diff --git a/themes/default/layouts/shortcodes/video.html b/themes/default/layouts/shortcodes/video.html
index ecbe20e..5f6d8c3 100644
--- a/themes/default/layouts/shortcodes/video.html
+++ b/themes/default/layouts/shortcodes/video.html
@@ -38,7 +38,7 @@
</p>
</video>
<footer>
- {{ $caption | markdownify }}:
- {{ print "[Link](" $source $mime ")" | markdownify }}
+ {{ $caption | markdownify }}
+ ({{ print "[Link](" $source $mime ")" | markdownify }})
</footer>
</video-container>
diff --git a/themes/default/layouts/shortcodes/wikipedia.html b/themes/default/layouts/shortcodes/wikipedia.html
index be91028..eab4a7b 100644
--- a/themes/default/layouts/shortcodes/wikipedia.html
+++ b/themes/default/layouts/shortcodes/wikipedia.html
@@ -2,7 +2,7 @@
{{- $title := default "Wikipedia Article" (.Get "title" | default (.Get 1)) -}}
{{-
$caption := default
- (print $title ": [Link](" "https://en.m.wikipedia.org/wiki/" $id ")")
+ (print $title " ([Link](" "https://en.m.wikipedia.org/wiki/" $id "))")
(.Get "caption" | default (.Get 2))
-}}
diff --git a/themes/default/layouts/shortcodes/youtube.html b/themes/default/layouts/shortcodes/youtube.html
index f471b91..99612ed 100644
--- a/themes/default/layouts/shortcodes/youtube.html
+++ b/themes/default/layouts/shortcodes/youtube.html
@@ -22,7 +22,7 @@
allowfullscreen title="{{ $title }}">
</iframe>
<footer>
- {{ $title | markdownify }}:
- {{ print "[Link](https://www.youtube.com/watch?v=" $id ")" | markdownify }}
+ {{ $title | markdownify }}
+ ({{ print "[Link](https://www.youtube.com/watch?v=" $id ")" | markdownify }})
</footer>
</youtube-video>