Add support for logo in main Site-header

This commit is contained in:
Óscar Nájera 2018-02-05 10:50:36 -05:00
parent d5b87cb15e
commit e76efc7ac5

View File

@ -6,9 +6,13 @@
<div class="bg-black-60"> <div class="bg-black-60">
{{ partial "site-navigation.html" .}} {{ partial "site-navigation.html" .}}
<div class="tc-l pv4 pv6-l ph3 ph4-ns"> <div class="tc-l pv4 pv6-l ph3 ph4-ns">
{{ if .Site.Params.logo }}
<img src="{{ .Site.Params.logo }}" class="w-third-ns" alt="{{ .Title | default .Site.Title }}" />
{{ else }}
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title"> <h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
{{ .Title | default .Site.Title }} {{ .Title | default .Site.Title }}
</h1> </h1>
{{ end }}
{{ with .Params.description }} {{ with .Params.description }}
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3"> <h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3">
{{ . }} {{ . }}