Skip to content
Permalink
Browse files

make navbar use site param for site logo (#173)

  • Loading branch information...
ddffnn authored and ryanfox1985 committed Jul 13, 2018
1 parent 0ba5cb8 commit 9c22db005b64ca3a5ad3c68fbb8c7161d2f212f6
Showing with 6 additions and 2 deletions.
  1. +3 −0 README.md
  2. +1 −0 exampleSite/config.toml
  3. +2 −2 layouts/partials/nav.html
@@ -111,6 +111,9 @@ googleAnalytics = "UA-XXXXX-X"

Leave the `googleAnalytics` key empty to disable it.

### Logo

You can select the logos using the logo and logo_small parameters. The logo_small value will be used when the site is rendered on small screens.

### Contact form

@@ -98,6 +98,7 @@ paginate = 10
date_format = "January 2, 2006"

logo = "img/logo.png"
logo_small = "img/logo-small.png"
address = """<p><strong>Universal Ltd.</strong>
<br>13/25 New Avenue
<br>Newtown upon River
@@ -5,8 +5,8 @@
<div class="container">
<div class="navbar-header">
<a class="navbar-brand home" href="{{ .Site.BaseURL }}">
<img src="{{ .Site.BaseURL }}img/logo.png" alt="{{ .Title }} logo" class="hidden-xs hidden-sm">
<img src="{{ .Site.BaseURL }}img/logo-small.png" alt="{{ .Title }} logo" class="visible-xs visible-sm">
<img src="{{ .Site.BaseURL }}{{ .Site.Params.logo }}" alt="{{ .Title }} logo" class="hidden-xs hidden-sm">
<img src="{{ .Site.BaseURL }}{{ .Site.Params.logo_small }}" alt="{{ .Title }} logo" class="visible-xs visible-sm">
<span class="sr-only">{{ .Title }} - {{ i18n "navHome" }}</span>
</a>
<div class="navbar-buttons">

0 comments on commit 9c22db0

Please sign in to comment.
You can’t perform that action at this time.