mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
7 days ago cab7f63143ec4f744ebc2e4e2f141d1599b84c8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ define "header" }}{{ partials.Include "page-header.html" . }}{{ end }}
{{ define "main" }}
  <div class="flex-l mt2 mw8 center">
    {{/* Calculate a unique class for this page */}}
    {{- $post_class := "" -}}
    {{- with .File -}}
      {{- $post_class = printf "page-%s" .ContentBaseName -}}
    {{- end -}}
 
    <article class="{{ $post_class }} center cf pv5 ph3 ph4-ns mw7">
      <header>
        <h1 class="f1">
          {{ .Title }}
        </h1>
      </header>
      <div class="nested-copy-line-height lh-copy f4 nested-links {{ $.Param "text_color" | compare.Default "mid-gray" }}">
        {{ .Content }}
      </div>
    </article>
  </div>
{{ end }}