summaryrefslogtreecommitdiffstats
path: root/indieweb-micro/themes/MinIndie/layouts/indie/single.html
blob: 906b704da61701d382255cc240944c4c1a2e8b25 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{{ define "main" }}
{{ $ageDays := div (sub now.Unix .Date.Unix) 86400 }}
    <main>
        <article class="h-entry">
            <a class="u-bridgy-fed" href="https://fed.brid.gy/" hidden="from-humans"></a>
            <h1 class="p-name">{{ .Title }}</h1>
            <div hidden>{{ partial "bio-hcard.html" . }}</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 -}}

            {{- with .Site.Params.tagPostOlderThanXDays -}}
                {{- if and (gt $ageDays .) (eq $.Type "posts") -}}
                    {{ partial "article-old-content.html" . }}
                {{- end -}}
            {{- end -}}

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

            {{- if .Params.toc -}}
                <div class="toc noprint">
                    <h2>Table of Content</h2>
                    <aside>
                        {{ .TableOfContents }}
                    </aside>
                </div>
            {{- end -}}

            <div class="e-content">
                {{ .Content }}
            </div>

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

            {{ if .Site.Params.enableNextPrevPages }}
                {{ partial "article-prevnext.html" . }}
            {{ end }}

            {{ if .Site.Params.enableRelatedPages }}
                {{ partial "article-related.html" . }}
            {{ end }}
        </article>
        <a class="u-bridgy-fed" href="https://fed.brid.gy/" hidden="from-humans"></a>
    </main>
{{ end }}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage