diff --git a/README.md b/README.md index fd8beeb..6dfdedd 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,16 @@ If you add a key of `show_reading_time` true to either the Config Params, a page Some scripts need to be added within the page head. To add your own scripts to the page head, simply insert them into the `head-additions.html` partial located in the `layouts/partials` folder. +### 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 `site_logo` parameter to the site params in your config file. For example: + +``` +[params] + site_logo = "img/logo.svg" +``` + + ### Nearly finished In order to see your site in action, run Hugo's built-in local server. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8ff63d0..9f83574 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -18,6 +18,7 @@ enableRobotsTXT = true [params] favicon = "" + site_logo = "" description = "The last theme you'll ever need. Maybe." facebook = "" twitter = "https://twitter.com/GoHugoIO" diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html index fc6f40c..d73c66d 100644 --- a/layouts/partials/site-navigation.html +++ b/layouts/partials/site-navigation.html @@ -1,7 +1,11 @@