~taavi/taavi.wtf

ref: 62d7c2e891bcbb880c5b9ad1d97d7be93c43d2bb taavi.wtf/themes/castor/layouts/_default/list.html -rw-r--r-- 509 bytes
62d7c2e8Taavi Väänänen add latest blog archive to front page 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
{{ define "main" }}
    <div>
        <h1>{{ .Title }}</h1>
        <div>
            {{ .Content }}
        </div>
    </div>

    <div>
        <ul>
            {{ range .Pages }}
            {{ partial "list-entry.html" . }}
            {{ end }}
        </ul>
    </div>

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