Add support for logo
This commit is contained in:
parent
b67859efa2
commit
ed00e92055
|
@ -6,8 +6,8 @@
|
||||||
{{ partial "svgpack-sprite.html" . }}
|
{{ partial "svgpack-sprite.html" . }}
|
||||||
<header class="l-header">
|
<header class="l-header">
|
||||||
{{ partial "menu.html" . }}
|
{{ partial "menu.html" . }}
|
||||||
{{ if .IsPage }}
|
{{ if .Site.Params.headerlogo }}
|
||||||
<p class="c-title p-title"><a href="{{ .Site.BaseURL }}" class="p-title__link">{{ .Site.Title }}</a></p>
|
<a href="{{ .Site.BaseURL }}" class="p-title__link"><img class="p-logo" src="{{ .Site.Params.headerlogo }}"></img></a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<h1 class="c-title p-title"><a href="{{ .Site.BaseURL }}" class="p-title__link">{{ .Site.Title }}</a></h1>
|
<h1 class="c-title p-title"><a href="{{ .Site.BaseURL }}" class="p-title__link">{{ .Site.Title }}</a></h1>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -17,4 +17,4 @@
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
<main id="main" class="l-main">
|
<main id="main" class="l-main">
|
|
@ -13,6 +13,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.p-logo {
|
||||||
|
height: 14rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.p-title__link {
|
.p-title__link {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue