From d294ffed41f7e64102fc631548ec8b3f6ef1c7c5 Mon Sep 17 00:00:00 2001
From: tdro
–.*
` .Content 1) "" -}} +{{- $blockquoteFooterEmDash := delimit (findRE `\n—.*
` .Content 1) "" -}} + +{{- $blockquoteFooterFixedEnDash := $blockquoteFooterEnDash | + replaceRE "\n" "
" "" | +-}} + +{{- $blockquoteFooterFixedEmDash := $blockquoteFooterEmDash | + replaceRE "\n" "
" "" | +-}} + +{{- + $content = $content | + replaceRE $blockquoteFooterEnDash $blockquoteFooterFixedEnDash | + replaceRE $blockquoteFooterEmDash $blockquoteFooterFixedEmDash | +-}} + {{- if $empty -}} {{- $content = "This message contains no content." -}} {{- end -}} diff --git a/themes/default/layouts/shortcodes/footer.html b/themes/default/layouts/shortcodes/footer.html deleted file mode 100644 index 579913d..0000000 --- a/themes/default/layouts/shortcodes/footer.html +++ /dev/null @@ -1,7 +0,0 @@ -{{- $text := default "Block Quote" (.Get "text" | default (.Get 0)) -}} - -{{- if gt (len .Inner) 1 -}} - {{ $text = .Inner }} -{{- end -}} - -{{ $text | markdownify }} diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html index 10e29c5..c34a53d 100644 --- a/themes/default/layouts/shortcodes/version.html +++ b/themes/default/layouts/shortcodes/version.html @@ -1,4 +1,4 @@ -{{- $version := "0.11.5" -}} +{{- $version := "0.11.6" -}} {{- $number := default false (.Get "number" | default (.Get 0)) -}} {{- $clone := default false (.Get "clone" | default (.Get 1)) -}} -- cgit v1.2.3