Fail if no content for all shortcodes
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
||||
|
||||
{{ if not $content }}
|
||||
{{ errorf "paige/quote: no content" }}
|
||||
{{ end }}
|
||||
|
||||
<div class="paige-quote">
|
||||
<blockquote class="blockquote">{{ $content }}</blockquote>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user