Used Hugo's "{{-" and "-}}" syntax to remove extra whitespace

This commit is contained in:
Steven Engler
2019-07-06 12:31:51 -04:00
parent cbe8e5e1e8
commit 423e7f6272
3 changed files with 33 additions and 33 deletions

View File

@ -3,12 +3,12 @@
<div class="title-header">
<h1>{{ if .Draft }}<i>(Draft)</i> {{ end }}{{ .Title }}</h1>
<div class="title-header-date">
{{ if eq .Date.IsZero false }}
{{- if eq .Date.IsZero false }}
<time>{{ .Date.Format "Monday, January 2, 2006" }}</time>
{{ end }}
{{ if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }}
{{- end }}
{{- if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }}
&mdash; last updated <time>{{ .Lastmod.Format "January 2, 2006" }}</time>
{{ end }}
{{- end }}
</div>
</div>
{{ .Content }}