summaryrefslogtreecommitdiff
path: root/layouts/fictions/page.html
blob: dda4e884b423cd029a49c936898df994e863f591 (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
{{ define "main" }}
    <article>
      <!-- Post Header -->
      <header class="text-center">
        {{ partial "components/logo" (dict
            "link" "fictions/"
            "src" "/img/potted-skeleton.svg"
            "imageClass" "block w-[10rem]"
            "class" "flex justify-center"
        ) }}
        <h1
            class="xerox text-4xl font-900"
            data-pagefind-meta="title"
        ><span style="view-transition-name: post-{{ .File.UniqueID }}">{{ .Title }}</span></h1>
        <div class="text-secondary">{{ partial "components/date" . }}</div>
      </header>

      <!-- Post Content -->
      <div id="post-content" class="post-content markdown-body leading-loose"
          style="view-transition-name: post-content-{{ .File.UniqueID }}">
        {{ .Content }}
      </div>

      <!-- Comment -->
      {{ partial "posts/comment.html" . }}
    </article>
{{ end }}