mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-02 08:08:32 -04:00
Fix spacing issue with dates
This commit is contained in:
parent
5e00f7c0a7
commit
6478a68b19
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue