mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-08 03:19:02 +00:00
30 lines
976 B
HTML
30 lines
976 B
HTML
![]() |
{{- 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 -}}
|