about summary refs log tree commit diff
path: root/layouts/partials/postInfo.html
blob: d7146fd8e042cc07e29b83e7a99f7bb747c1b5cd (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
29
30
31
32
33
34
{{ $dateFormat := "2006-01-02" }}
{{ if .Site.Params.dateFormat }}
    {{ $dateFormat = .Site.Params.dateFormat }}
{{ end }}

<div class="post-info">
    {{ if .Params.date }}
        <div class="post-date dt-published">{{ .Params.date.Format $dateFormat }}</div>
    {{ end }}
    
    <a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a>
    <a href={{ .Site.BaseURL }} class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a>


    <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>
            tagged:
            {{ if .Params.tags }}
                <ul class="post-tags">
                    {{ range .Params.tags }}
                        <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
                    {{ end }}
                </ul>
        {{ end }}
    </div>
</div>