summaryrefslogtreecommitdiff
path: root/layouts/posts/single.html
blob: 7a7051f09f3c205efdd9cf17f8a7e963a875b434 (plain)
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" }}
    {{ partial "components/post-page-header.html" . }}
    <article class="post" id="article">
      <!-- Post Header -->
      <header
        style="view-transition-name: post-{{ .File.UniqueID }}"
        class="post-header"
      >
        {{ partial "components/banner.html" . }}
        <!-- Title and Subtitle -->
        <h1 class="post-title">
          <span data-pagefind-meta="title">{{ .Title }}</span>
          {{ with .Params.subtitle }}
            <small class="post-subtitle">{{ . }}</small>
          {{ end }}
        </h1>
        <!-- Post Meta -->
        <div class="post-meta">
            {{ partial "components/date" . }}
            {{ if or .Params.categories .Params.tags }}<span>·</span>{{ end }}
            {{ partial "components/category-pill" . }}
            {{ partial "components/tags" . }}
        </div>
      </header>

      <!-- Post Content -->
      <div class="post-content markdown-body"
          style="view-transition-name: post-content-{{ .File.UniqueID }}">
        <!-- TOC -->
        {{ partial "components/toc" . }}
        <!-- Content -->
        <div id="post-content">
            {{ .Content }}
        </div>
        <!-- Endnotes -->
        {{ partial "components/endnotes" . }}
      </div>

      <!-- Comment -->
      {{ partial "components/comment.html" . }}
      <!-- Now Read This -->
      {{ partial "components/now-read-this.html" . }}
    </article>
{{ end }}