Fix spacing issue with dates

This commit is contained in:
Lukas Joswiak 2020-10-11 13:39:37 -07:00
parent 5e00f7c0a7
commit 6478a68b19
2 changed files with 5 additions and 5 deletions

View file

@ -2,11 +2,11 @@
<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
<nav>
<ul>
{{ range .Site.Menus.main.ByWeight }}
{{ range .Site.Menus.main.ByWeight -}}
<li>
{{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }}
</li>
{{ end }}
{{- end }}
</ul>
</nav>
</header>

View file

@ -1,11 +1,11 @@
<h3>Posts</h3>
<ul id="posts">
{{ range where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
<a href="{{ .Permalink }}">
{{- .Title -}}
{{ .Title }}
<small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>
</a>
</li>
{{ end }}
{{- end }}
</ul>