From be30a47555871dbe95511071209d30b9ecb3f572 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 31 Jan 2020 14:19:38 +0000 Subject: [PATCH] Add the option to use a logo for the top left site title --- README.md | 10 ++++++++++ layouts/partials/site-navigation.html | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 673539b05..d72c86f74 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,16 @@ For example, if your css files are `static/css/custom.css` and `static/css/custo If you add a key of `show_reading_time` true to either the Config Params, a page or section's front matter, articles will show the reading time and word count. +### Logo + +You can replace the title of your site in the top left corner of each page with your own logo. To do that put your own logo into the `static` directory of your website, and add the `logo` parameter to the site params in your config file. For example: + +``` +[params] + logo = "img/logo.svg" +``` + + ### Nearly finished In order to see your site in action, run Hugo's built-in local server. diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html index d1f31dac6..022a48dd7 100644 --- a/layouts/partials/site-navigation.html +++ b/layouts/partials/site-navigation.html @@ -1,7 +1,11 @@