Use indentation inside templating blocks for better readability

This commit is contained in:
2021-11-22 02:21:15 -06:00
parent e1e211a42a
commit ead88d5e16
24 changed files with 310 additions and 326 deletions

View File

@ -1,7 +1,7 @@
<aside>
{{ with .Inner }}
{{ . | markdownify }}
{{ . | markdownify }}
{{ else }}
{{ errorf "The aside shortcode needs to be a closing one (similar to the highlight shortcode, see https://gohugo.io/templates/shortcode-templates/#inner" }}
{{ errorf "The aside shortcode needs to be a closing one (similar to the highlight shortcode, see https://gohugo.io/templates/shortcode-templates/#inner" }}
{{ end }}
</aside>

View File

@ -2,12 +2,12 @@
{{ $noborder := false }}
{{ if .Get "noborder" }}
{{ $noborder = true }}
{{ $noborder = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ $hidecaption = true }}
{{ end }}
<p>

View File

@ -1,11 +1,11 @@
{{ $border := false }}
{{ if .Get "border" }}
{{ $border = true }}
{{ $border = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ $hidecaption = true }}
{{ end }}
<p>

View File

@ -1,11 +1,11 @@
{{ $border := false }}
{{ if .Get "border" }}
{{ $border = true }}
{{ $border = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ $hidecaption = true }}
{{ end }}
<p>