~linuxgoose/bocpress

ref: 6ed45057c9f060d7715c485f1840a2dd2aad494c bocpress/export_base_hugo/single.html -rw-r--r-- 912 bytes
6ed45057Jordan Robinson release 1.3.6 8 days ago
                                                                                
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
{{ define "main" }}
<main>
    <a href="/" class="posts-item-brand">{{ .Site.Title }}</a>

    <article itemscope itemtype="http://schema.org/BlogPosting">
        <h1 class="posts-item-title" itemprop="name headline">
            {{ .Title }}
        </h1>

        <div class="posts-item-byline">
            Published on
            <time datetime="{{ dateFormat "January 2, 2006" .Date }}" itemprop="datePublished">
                {{ dateFormat "January 2, 2006" .Date }}
            </time>
        </div>

        <div itemprop="articleBody">
            {{ .Content }}
        </div>
    </article>
</main>
<footer>
    {{- with .Site.GetPage "/" }}
        {{- with .OutputFormats.Get "rss" }}
            <p>
                Subscribe via
                {{ printf `<a href=%q title=%q>RSS</a>` .Permalink site.Title | safeHTML }}
            </p>
        {{- end }}
    {{- end }}
</footer>
{{ end }}