Indent template logic

This commit is contained in:
Will Faught
2023-01-07 09:04:54 -08:00
parent 9848a64ff3
commit 994591f932
17 changed files with 340 additions and 340 deletions

View File

@@ -1,8 +1,8 @@
{{ $authors := partial "paige/func-authors.html" . }}
{{ if or $authors .PublishDate}}
<p class="text-center text-secondary">
{{- with $authors }}{{ . }}{{ end -}}
{{- if and $authors .PublishDate }}<br>{{ end -}}
{{- with .PublishDate }}<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.date_format | default ":date_long") . }}</time>{{ end -}}
</p>
<p class="text-center text-secondary">
{{- with $authors }}{{ . }}{{ end -}}
{{- if and $authors .PublishDate }}<br>{{ end -}}
{{- with .PublishDate }}<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.date_format | default ":date_long") . }}</time>{{ end -}}
</p>
{{ end }}