about summary refs log tree commit diff
path: root/layouts/partials/post-info.html
blob: c358a44d8021fb30d1531233368b75b3b8840d20 (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/" | absLangURL }}{{ . | urlize }}">{{ . }}</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>