Fail if no content for all shortcodes
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
{{ $vertical := .Get "vertical" | default "center" }}
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ if not $content }}
|
||||
{{ errorf "paige/figure: no content" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $showcaption := $caption }}
|
||||
{{ $sidemargin := "" }}
|
||||
{{ $table := false }}
|
||||
|
Reference in New Issue
Block a user