~linuxgoose/bocpress

ref: 42cec5dc9648d56bb8bee0a6e09738f558701e1f bocpress/export_base_hugo/single.html -rw-r--r-- 912 bytes
42cec5dcJordan Robinson fix use blog_user on public template 2 months 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 }}