mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
Make logo configurable
This commit is contained in:
parent
fa24be58a7
commit
9c1b9ddf87
2 changed files with 8 additions and 4 deletions
|
@ -35,3 +35,7 @@ pygmentsUseClasses = true
|
||||||
meta_twitter_card = "summary"
|
meta_twitter_card = "summary"
|
||||||
meta_twitter_site = "@zerostaticio"
|
meta_twitter_site = "@zerostaticio"
|
||||||
meta_twitter_creator = "@zerostaticio"
|
meta_twitter_creator = "@zerostaticio"
|
||||||
|
|
||||||
|
[params.logo]
|
||||||
|
mobile = "/images/logo-mobile.svg"
|
||||||
|
standard = "/images/logo.svg"
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<div class='header'>
|
<div class='header'>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<a href="{{ .Site.BaseURL }}"><img alt="Logo" src="{{ "images/logo.svg" | absURL }}" /></a>
|
<a href="{{ .Site.BaseURL }}"><img alt="Logo" src="{{ .Site.Params.logo.standard }}" /></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="logo-mobile">
|
<div class="logo-mobile">
|
||||||
<a href="{{ .Site.BaseURL }}"><img alt="Logo" src="{{ "images/logo-mobile.svg" | absURL }}" /></a>
|
<a href="{{ .Site.BaseURL }}"><img alt="Logo" src="{{ .Site.Params.logo.mobile }}" /></a>
|
||||||
</div>
|
</div>
|
||||||
{{ partial "main-menu.html" . }}
|
{{ partial "main-menu.html" . }}
|
||||||
{{ partial "hamburger.html" . }}
|
{{ partial "hamburger.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue