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

Patrick Kollitsch
13 hours ago c70b22c0c65d21fc25eda46a8182eb042da11da0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{- /*
  Header component: the page title, or the site title if the page has none.
 
  The `site` variant (list pages) renders an `h1`. The `page` variant (single
  pages) renders a `div`, because the article itself contains the `h1`.
*/ -}}
{{- $page := .page -}}
{{- $title := $page.Title | compare.Default $page.Site.Title -}}
{{- if compare.Eq .variant "page" -}}
  <div class="f2 f1-l fw2 white-90 mb0 lh-title">{{ $title }}</div>
{{- else -}}
  <h1 class="f2 f-subheadline-l fw2 {{ compare.Conditional (compare.Ne .featured_image "") "white-90" "light-silver" }} mb0 lh-title">
    {{ $title }}
  </h1>
{{- end -}}