aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
blob: bdb548253a44cd82d182892e86208b088b55c71e (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
{{ define "main" }}
  <header class="max-w-screen-md mx-auto">
    <h1 class="baskerville px-1">
      {{ .Title }}
    </h1>

    {{ with .Params.subtitle }}
      <h3 class="text-2xl baskerville my-4 p-1">{{ . }}</h3>
    {{ end }}

    {{ partial "meta_links.html" . }}
    {{ if .Params.metadata }}
      {{ partial "metadata.html" . }}
    {{ end }}

    {{ partial "leading_image.html" . }}
  </header>
  <div class="main-content max-w-screen-md mx-auto px-1">
    {{ .Content }}
  </div>
  {{ partial "image-gallery" . }}

  {{ if .Site.Params.tipping }}
    {{ partial "tipping" . }}
  {{ end }}
  <div class="f5 f4-ns lh-copy py-2">
    {{ if in (slice "post" "talk") .Section }}
      {{ range .Params.authors }}
        {{ $name := . }}
        {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }}
        {{ with $.GetPage $path }}
          {{ if .File }}
            {{ partial "author_card" (merge .Params (dict "path" $path )) }}
          {{ end }}
        {{ end }}
      {{ end }}
    {{ end }}
    {{ partial "post_pager" . }}
  </div>
{{ end }}