summaryrefslogtreecommitdiffstats
path: root/indieweb-micro/themes/MinIndie/layouts/notes/single.html
blob: 7b96f5c8e051fbd90a95d1074929b7e7ea1feac9 (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
35
36
37
38
39
40
41
42
43
44
{{ define "main" }}
{{ $ageDays := div (sub now.Unix .Date.Unix) 86400 }}
    <main>
        <article class="h-entry">
            <div hidden>{{ partial "bio-hcard.html" . }}</div>
            <div><b>
                    <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05-07:00" }}">
                        {{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}
                    </time>
                    - <a href="{{ .Permalink }}" class="u-url u-uid" >Permalink</a>
            </b></div>

            {{- if or .Params.categories .Params.tags -}}
                <div class="article-meta">
                    {{- with .Params.categories -}}
                        <span class="categories">
                            Categories:
                            {{ range . }}
                                <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
                            {{ end }}
                        </span>
                    {{- end -}}
                    {{- if and .Params.categories .Params.tags -}}
                        --
                    {{- end -}}
                    {{- with .Params.tags -}}
                        <span class="tags">
                            Tags:
                            {{ range . }}
                                #<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="p-category">{{ . }}</a>
                            {{ end }}
                        </span>
                    {{- end -}}
                </div>
            {{- end -}}

            {{- partial "article-precontent.html" . -}}

            <div class="e-content">
                {{ .Content }}
            </div>
        </article>
    </main>
{{ end }}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage