1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 17:05:32 -04:00

cleaned up HTML output

This commit is contained in:
2019-04-02 13:11:37 -04:00
parent 91cbf98449
commit ccd30a9e2b
3 changed files with 31 additions and 40 deletions

View File

@@ -1,21 +1,21 @@
{{ partial "header.html" . }}
{{ partial "blog-header.html" . }}
<div id="archive">
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="year">
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
<li class="item">
<div class="date">{{ .Date.Format "Jan 2" }}</div>
<div class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></div>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
<div id="archive">
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="year">
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
<li class="item">
<div class="date">{{ .Date.Format "Jan 2" }}</div>
<div class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></div>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
{{ partial "blog-footer.html" . }}
{{ partial "footer.html" . }}