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

Patrick Kollitsch
2 days ago c70b22c0c65d21fc25eda46a8182eb042da11da0
1
2
3
4
5
6
7
8
9
10
11
12
{{- /*
  Header component: site logo or site title, linked to the home page.
  Uses `site_logo` from the site parameters if it is set.
*/ -}}
{{- $site := .page.Site -}}
<a href="{{ $site.Home.RelPermalink }}" class="ananke-nav-brand {{ .classes.brand }}">
  {{ with $site.Params.site_logo }}
    <img src="{{ urls.RelURL . }}" class="w100 mw5-ns" alt="{{ $site.Title }}" />
  {{ else }}
    {{ $site.Title }}
  {{ end }}
</a>