about summary refs log tree commit diff
path: root/layouts/partials/post-info.html
blob: bb6e3c07ef13a41ef634bf982beb34d757662aa5 (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
25
26
27
28
<div class="post-info">
    {{ with .Params.date }}
    <div>
        <time>{{ .Format "2006-01-02" }}</time>
    </div>
    {{ end }}


    <div class="post-taxonomies">
        {{ if .Params.categories }}
        Categories:
        <ul class="post-categories">
            {{ range .Params.categories }}
            <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
            {{ end }}
        </ul>
        {{ end }}
        <br>
        {{ if .Params.tags }}
        Tags:
        <ul class="post-tags">
            {{ range .Params.tags }}
            <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
            {{ end }}
        </ul>
        {{ end }}
    </div>
</div>