mirror of https://github.com/lxndrblz/anatole.git

Peter Kleiweg
13.52.2022 c097ab90ab82e257d961b4122e690d25aeb1f6ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{{ define "main" }}
  <div
    class="archive {{ with .Site.Params.doNotLoadAnimations }}
      .
 
    {{ else }}
      animated fadeInDown
 
    {{ end }}"
  >
    {{ range .Data.Pages.GroupByDate "2006" }}
      <div class="archive__heading">{{ .Key }}</div>
      {{ range .Pages }}
        <ul class="archive__list">
          <li class="archive__list-item">
            <a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ .Title }}</a>
            <div class="archive__list-date">
              {{ if isset .Site.Params "listdateformat" }}
                {{ if .Site.Params.localizedDates }}
                  {{ time.Format .Site.Params.listDateFormat .Date }}
 
                {{ else }}
                  {{ .Date.Format .Site.Params.listDateFormat }}
 
                {{ end }}
 
 
              {{ else }}
                {{ if .Site.Params.localizedDates }}
                  {{ time.Format "Jan 2" .Date }}
 
                {{ else }}
                  {{ .Date.Format "Jan 2" }}
 
                {{ end }}
 
 
              {{ end }}
            </div>
          </li>
        </ul>
 
      {{ end }}
 
 
    {{ end }}
  </div>
 
{{ end }}