You've already forked no-js-hugo-theme
Used Hugo's "{{-" and "-}}" syntax to remove extra whitespace
This commit is contained in:
@ -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)) }}
|
||||
— last updated <time>{{ .Lastmod.Format "January 2, 2006" }}</time>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ .Content }}
|
||||
|
Reference in New Issue
Block a user