diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b595da6e..65662836 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -57,6 +57,10 @@ defaultContentLanguageInSubdir = false # Enable Keybase in Contact section by entering your keybase.io username. keybase = "" + # Diplay a logo in navigation bar rather than title (optional). + # To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "". + logo = "" + # Enable Google Maps by entering your API key, latitude, and longitude. # Get your API key: https://developers.google.com/maps/documentation/javascript/get-api-key # Get your coords: Right-click place on Google Maps. Select 'What's here?'. At the bottom is a card with the coords. diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index ff6c9eec..c57288ab 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -1024,6 +1024,10 @@ nav#navbar-main li { padding-bottom: 10px; } +.navbar-brand img { + max-height: 50px; +} + .navbar-default .navbar-toggle .icon-bar { background-color: {{ .Get "menu_text" }} !important; } @@ -1092,6 +1096,10 @@ nav#navbar-main li { padding-bottom: 5px; } + .navbar-brand img { + max-height: 40px; + } + .navbar-header { float: none; min-height: inherit; diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index e25459c1..4e3d945e 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -12,7 +12,13 @@ {{ end }} - {{ .Site.Title }} + + {{- if .Site.Params.logo -}} + {{ .Site.Title }} + {{- else -}} + {{- .Site.Title -}} + {{- end -}} +