Welcome to mirror list, hosted at ThFree Co, Russian Federation.

list.html « categories « layouts - github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2b1ec0f64391fe31e182ab01e4551e0d25100b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ define "main" }}
<div class="pl-sm-4 ml-sm-5">
    <h4>{{ if eq .Name "Categories" }} Categories {{ else }} Category - {{ .Name }} {{ end }}</h4>
    {{ $outerName := .Name }}
    <ul class="list-unstyled">
        {{ range .Pages }}
        <li>
            {{ if ne $outerName "Categories" }}
                <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
                {{ .Date.Format "Jan 2 2006" }}
                </time>
            {{ end }}
            <a href="{{ .RelPermalink }}">
                {{ .Title }}
            </a>
        </li>
        {{ end }}
    </ul>
</div>
{{ end }}