source: tanzpartie-hugo/themes/bilberry-hugo-theme/layouts/archive/single.html @ 16971

Last change on this file since 16971 was 16971, checked in by Henrik Bettermann, 2 years ago
File size: 1.1 KB
Line 
1{{ define "main" }}
2<div class="content">
3    <div class="article-wrapper u-cf single">
4        <a class="bubble" href="{{ "/archive/" | relLangURL}}">
5            <i class="fa fa-fw fa-archive"></i>
6        </a>
7
8        <article class="article">
9            <div class="content">
10                <h1 class="article-title">{{ i18n "archive" }}</h1>
11                <div class="meta"></div>
12                <div class="archive-list">
13                    {{ range (where .Site.RegularPages "Type" "not in" (slice "page" "archive" "status" ) ).GroupByPublishDate (.Site.Params.archiveDateGrouping | default "2006-01") }}
14                    <h4>{{ .Key }}</h4>
15                    <ul>
16                        {{ range .Pages }}
17                        <li>
18                            <a href="{{ .Permalink }}">{{ .Title }} <span>({{ .PublishDate.Format (.Site.Params.DateFormat | default "2006-01-02") }})</span></a>
19                        </li>
20                        {{ end }}
21                    </ul>
22                    {{ end }}
23                </div>
24            </div>
25        </article>
26    </div>
27</div>
28{{ end }}
Note: See TracBrowser for help on using the repository browser.