aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/author.html
blob: ad1602fe5d2ba03052063d96ad7e497a0f770767 (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 "hero" }}
  {{ partial "hero.html" . }}
{{ end }}
{{ define "main" }}
  {{- $sectionDelimiter := "<!-- section break -->" -}}
  {{- $rawContentSections := split .RawContent $sectionDelimiter -}}
  {{ range $rawContentSections }}
    <div class="stripe-dark">
      <div class="max-w-screen-md mx-auto py-2 lh-copy f4-ns px-1 main-content">
        {{ . | markdownify }}
      </div>
    </div>
  {{ end }}

  {{ with where .Pages "Type" "publication" }}
    {{ if gt (len .) 0 }}
      <div class="stripe-dark">
        <div class="max-w-screen-md mx-auto py-2 lh-copy f4-ns px-1">
          <h2 class="baskerville lh-title f2">Publications</h2>
          {{ range . }}
            {{ partial "post.html" . }}
          {{ end }}
        </div>
      </div>
    {{ end }}
  {{ end }}
{{ end }}