Add align param
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{{ $align := .Get "align" }}
|
||||
{{ $caption := .Get "caption" }}
|
||||
{{ $float := .Get "float" }}
|
||||
{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
|
||||
@@ -6,6 +7,7 @@
|
||||
{{ $content := highlight (.Inner | replaceRE "^\n" "") $lang $options }}
|
||||
|
||||
{{ partial "paige/figure.html" (dict
|
||||
"align" $align
|
||||
"caption" $caption
|
||||
"content" $content
|
||||
"float" $float
|
||||
|
Reference in New Issue
Block a user