~taavi/taavi.wtf

ref: 90792c560140d7fa1304bcb91f1fdee1031b9fc6 taavi.wtf/themes/castor/layouts/_default/single.html -rw-r--r-- 551 bytes
90792c56Taavi Väänänen improve mobile layout with large code blocks 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ define "main" }}
    <h1>{{ .Title }}</h1>

    {{ if ne (.PublishDate.Format "2006-01-02") "0001-01-01" }}
        <p class="article-meta">
            Published on <span>{{ .PublishDate.Format "January 2, 2006" }}</span>.
        </p>
    {{ end }}

    {{ .Content }}

    {{ if .Params.tags }}
        <div class="article-meta">
            This article is tagged as:
            {{ range .Params.tags }}
                <a href="{{ "tags" | absURL }}/{{ . | urlize }}/">{{ . }}</a>
            {{ end }}
        </div>
    {{ end }}
{{ end }}