diff options
author | tdro <tdro@noreply.example.com> | 2022-06-04 03:58:16 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-04 03:58:16 -0400 |
commit | 49807a0d253e5df7c12990b16cd9c1ef6aef6dab (patch) | |
tree | bf7408fbd4e8af392e9ca7839e1824af1b05df97 /themes/default/layouts/shortcodes/self.html | |
parent | 8f60938e286d5b79c73b3bbdcc900aa28da2fe84 (diff) | |
download | canory-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/self.html')
-rw-r--r-- | themes/default/layouts/shortcodes/self.html | 8 |
1 files changed, 4 insertions, 4 deletions
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 = "/" -}} |