summaryrefslogtreecommitdiffstats
path: root/layouts/_default/li.html
blob: b5939f58742083b9148a27d7f93b6bf19388f50b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<style>
    #cat-category {
        font-size: small;
        color: red;
    }
    #vim-category {
        font-size: small;
        color: #2abb01;
    }
</style>

<li>
    <a href="{{ .Permalink }}">
        {{ .Title }}
        {{ if isset .Params "category" }}
            {{ if eq .Params.Category "cats" }}
            <span id="cat-category">[{{ lower .Params.Category }}]</span>
            {{ else if (eq .Params.Category "vim") }}
            <span id="vim-category">[{{ lower .Params.Category }}]</span>
            {{ end }}
        {{ end }}
        <small><time>{{ .Date.Format "2 Jan 2006" }}</time></small>
    </a>
</li>