From 9c1b9ddf87f94ff4d96fd01339c0a89c6687fe6c Mon Sep 17 00:00:00 2001 From: Dan Webb Date: Thu, 11 Apr 2019 21:48:17 +0100 Subject: [PATCH] Make logo configurable --- exampleSite/config.toml | 6 +++++- layouts/partials/header.html | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4c768a9..3098ab5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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" \ No newline at end of file + meta_twitter_creator = "@zerostaticio" + + [params.logo] + mobile = "/images/logo-mobile.svg" + standard = "/images/logo.svg" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 160c766..d787090 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,12 +1,12 @@
- Logo + Logo
{{ partial "main-menu.html" . }} {{ partial "hamburger.html" . }}
-
\ No newline at end of file +