website/themes/terminal-plus-minus/layouts/archive/single.html

30 lines
976 B
HTML
Raw Normal View History

2019-09-01 17:51:06 +00:00
{{- define "main" -}}
{{- if $.Site.Params.enableBreadcrumbs -}}
{{- partial "optional/breadcrumbs.html" (dict "context" . "class" "site__breadcrumbs" "childClass" "site__breadcrumb") -}}
{{- end -}}
<h1 class="page__title">{{ .Title }}</h1>
<section class="site__archives">
{{ range $.Site.RegularPages.GroupByPublishDate "2006" }}
{{ if ne .Key "0001" }}
<section class="archive">
<h2 class="archive__year" id="{{ .Key }}">{{ .Key }}</h2>
<div class="archive__posts">
{{- range .Pages -}}
{{- if ne .File.Dir "/" -}}
<div class="archive-post">
<a class="archive-post__title" href="{{ .Permalink }}">{{ .Title }}</a>
<date class="archive-post__date">{{ .Date.Format "2006-01-02" }}</date>
</div>
{{- end -}}
{{- end -}}
</div>
</section>
{{ end }}
{{ end }}
</section>
{{- end -}}