aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
blob: 271ddd8a6d8a64b3ae7feb9e52e11363ec660894 (plain) (blame)
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

{{ define "main" }}

<article class="flex flex-col gap-10">
  <header class="flex flex-col gap-2">
    <h2 class="title-large">{{ .Title }}</h2>

    <div class="meta">
      {{/* Publish date */}}
      <time datetime="{{ .PublishDate }}" title='{{ .PublishDate.Format "Mon, Jan 2, 2006, 3:04 PM MST" }}'>
        {{ .PublishDate.Format "02/01/2006" }} - Estimated reading time: {{ .ReadingTime }} minutes
      </time>

      {{/* Categories */}}
      {{ with (.GetTerms "categories") }} —
        {{ range . }}
          <a class="categories" href="{{ .RelPermalink }}" alt="{{ .LinkTitle }}">
            {{ .LinkTitle }}
          </a>
        {{ end }}
      {{ end }}
    </div>
  </header>

  {{ partial "single/table-of-contents" . }}

  <section>{{ .Content | emojify }}</section>

  {{ partial "single/comments/index" . }}

  <footer>
    {{ with (.GetTerms "tags") }}
      <div class="pb-14 taxonomy-list tags-list">
      {{ range . }}
        <a href="{{ .RelPermalink }}" alt="{{ .LinkTitle }}">
          {{ .LinkTitle }}
        </a>
      {{ end }}
      </div>
    {{ end }}
  </footer>
</article>

{{ end }}