Use InnerDeindent instead of Inner
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{ $content := .Inner | replaceRE "^\n" "" }}
|
||||
{{ $content := .InnerDeindent | replaceRE "^\n" "" }}
|
||||
{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
|
||||
{{ $options := .Get "options" }}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{{ $address := .Get 0 | default (.Get "address") }}
|
||||
{{ $content := .Inner | markdownify }}
|
||||
{{ $content := .InnerDeindent | markdownify }}
|
||||
|
||||
{{ if not $address }}
|
||||
{{ errorf "layouts/shortcodes/paige/email.html: no address" }}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{{ $caption := .Get 0 | default (.Get "caption") | markdownify }}
|
||||
{{ $content := .Inner | markdownify }}
|
||||
{{ $content := .InnerDeindent | markdownify }}
|
||||
{{ $float := .Get "float" }}
|
||||
{{ $horizontal := .Get "horizontal" | default "center" }}
|
||||
{{ $maxwidth := .Get "maxwidth" }}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
{{ $type := .Get "type" | default "rows" }}
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ $inner := chomp .Inner }}
|
||||
{{ $inner := chomp .InnerDeindent }}
|
||||
{{ $resources := slice }}
|
||||
|
||||
{{ if and (not $images) (not $inner) }}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{{ $cite := .Get 0 | default (.Get "cite") }}
|
||||
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
||||
{{ $content := .InnerDeindent | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
||||
|
||||
{{ if not $content }}
|
||||
{{ errorf "layouts/shortcodes/paige/quote.html: no content" }}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ $content := chomp .Inner }}
|
||||
{{ $content := chomp .InnerDeindent }}
|
||||
|
||||
{{ if not (.Page.Scratch.Get "paige-tabs") }}
|
||||
{{ .Page.Scratch.Set "paige-tabs" 0 }}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ $content := chomp .Inner | markdownify }}
|
||||
{{ $content := chomp .InnerDeindent | markdownify }}
|
||||
{{ $tabcount := .Page.Scratch.Get "paige-tabs" | default 0 }}
|
||||
|
||||
{{ if not $content }}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ $content := chomp .Inner }}
|
||||
{{ $content := chomp .InnerDeindent }}
|
||||
|
||||
{{ .Page.Scratch.Set "paige-tabs-button" 0 }}
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ $content := chomp .Inner | markdownify }}
|
||||
{{ $content := chomp .InnerDeindent | markdownify }}
|
||||
{{ $tabcount := .Page.Scratch.Get "paige-tabs" | default 0 }}
|
||||
|
||||
{{ if not $content }}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ $content := chomp .Inner }}
|
||||
{{ $content := chomp .InnerDeindent }}
|
||||
|
||||
{{ .Page.Scratch.Set "paige-tabs-pane" 0 }}
|
||||
|
||||
|
Reference in New Issue
Block a user