~taavi/taavi.wtf

ref: 9877f681a72aa5245668dffffcf77ebf1338127f taavi.wtf/themes/castor/layouts/_default/list.html -rw-r--r-- 813 bytes
9877f681Taavi Väänänen add feedback request 5 months ago
                                                                                
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
{{ define "main" }}
    <div>
        <h1>{{ .Title }}</h1>
        <div>
            {{ .Content }}
        </div>
    </div>

    <div>
        <ul>
            {{ range .Pages }}
            {{ if not .Params.hidden }}
            <li>
                {{ if ne (.PublishDate.Format "2006-01-02") "0001-01-01" }}
                <span class="article-meta">[{{ .PublishDate.Format "2006-01-02" }}]</span>
                {{ end }}
                <a href="{{ .Permalink }}">{{ .Title }}</a>
            </li>
            {{ end }}
            {{ end }}
        </ul>
    </div>

    {{ if ( gt ( len .Pages ) 0 ) }}
        {{ with .OutputFormats.Get "RSS" }}
        <p>
            <a href="{{ .RelPermalink }}">
                RSS feed
            </a>
        </p>
        {{ end }}
    {{ end }}
{{ end }}