Skip to content

Commit

Permalink
Merge pull request #9 from damacus/make-logo-configurable
Browse files Browse the repository at this point in the history
Make logo configurable
  • Loading branch information
JugglerX committed Apr 15, 2019
2 parents fa24be5 + ac13495 commit c679e0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion exampleSite/config.toml
Expand Up @@ -34,4 +34,8 @@ pygmentsUseClasses = true
meta_og_description = "Hugo Whisper is a documentation theme built with Hugo."
meta_twitter_card = "summary"
meta_twitter_site = "@zerostaticio"
meta_twitter_creator = "@zerostaticio"
meta_twitter_creator = "@zerostaticio"

[params.logo]
mobile = "/images/logo-mobile.svg"
standard = "/images/logo.svg"
6 changes: 3 additions & 3 deletions layouts/partials/header.html
@@ -1,12 +1,12 @@
<div class='header'>
<div class="container">
<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 | relURL }}" /></a>
</div>
<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 | relURL }}" /></a>
</div>
{{ partial "main-menu.html" . }}
{{ partial "hamburger.html" . }}
</div>
</div>
</div>

0 comments on commit c679e0b

Please sign in to comment.