LoveIt/layouts/_default/section.html

25 lines
998 B
HTML
Raw Normal View History

2020-01-31 11:46:28 +01:00
{{- define "title" }}{{ T "all" | humanize}}{{ T .Section | default .Section | humanize }} | {{ .Site.Title }}{{ end -}}
2019-08-04 15:53:35 +02:00
2020-01-31 11:46:28 +01:00
{{- define "content" -}}
{{- $data := .Data -}}
<div class="warpper archive">
2019-08-24 13:32:41 +02:00
<h2 class="post-title animated pulse faster">
2020-01-31 11:46:28 +01:00
{{- T "all" | humanize}}{{ T .Section | default .Section | humanize -}}
2019-08-10 21:26:03 +02:00
</h2>
2019-08-24 13:32:41 +02:00
2019-08-18 19:36:52 +02:00
{{- range (.Paginate (.Pages.GroupByDate "2006")).PageGroups -}}
<h3>{{ .Key }}</h3>
{{- range .Pages -}}
<article class="archive-item">
2020-01-31 11:46:28 +01:00
<a href="{{ .RelPermalink }}" class="archive-item-link">
{{- .Title -}}
</a>
2019-08-18 19:36:52 +02:00
<span class="archive-item-date">
{{- .Date.Format (.Site.Params.dateFormatToUse | default "01-02") -}}
</span>
</article>
{{- end -}}
{{- end -}}
{{- partial "paginator.html" . -}}
2019-08-10 21:26:03 +02:00
</div>
2020-01-31 11:46:28 +01:00
{{- end -}}