Browse Source

include site logo if available

Alexander Avery 3 weeks ago
parent
commit
96536988e0
  1. 4
      layouts/partials/header.html

4
layouts/partials/header.html

@ -1,2 +1,6 @@
{{ with resources.Get site.Params.logo.src }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="{{ site.Params.logo.alt }}">
{{ else }}
<h1>{{ site.Title }}</h1> <h1>{{ site.Title }}</h1>
{{ end }}
{{ partial "menu.html" (dict "menuID" "main" "page" .) }} {{ partial "menu.html" (dict "menuID" "main" "page" .) }}

Loading…
Cancel
Save