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