Can change logo now with config.toml

This commit is contained in:
Seth 2017-01-17 21:29:34 -05:00
parent 19602e782a
commit abbcc82681
3 changed files with 5 additions and 2 deletions

View file

@ -17,7 +17,9 @@ After installation, you will need to configure the config.toml file, change pict
### The config file ### The config file
Copy the config.toml from the exampleSite folder into your Hugo site's root folder. Change the fields as needed. Add or delete social media by following the examples in the file. You may need to look up the [font-awesome](http://fontawesome.io/) icon names. The icon field should be filled out without the "fa" prefix. The icon field for Twitter should be 'twitter' instead of 'fa-twitter'. Copy the `config.toml` from the exampleSite folder into your Hugo site's root folder. Change the fields as needed. Add or delete social media by following the examples in the file. You may need to look up the [font-awesome](http://fontawesome.io/) icon names. The icon field should be filled out without the "fa" prefix. The icon field for Twitter should be 'twitter' instead of 'fa-twitter'.
You can change the logo as well with font-awesome icons. The default is set to `fa-diamond`.
### Changing pictures ### Changing pictures

View file

@ -7,6 +7,7 @@ theme = "dimension"
title = "Dimension" title = "Dimension"
description = '<!--[-->A fully responsive site template designed by <a href="https://html5up.net">HTML5 UP</a> and released<!--]--><br /> description = '<!--[-->A fully responsive site template designed by <a href="https://html5up.net">HTML5 UP</a> and released<!--]--><br />
<!--[-->for free under the <a href="https://html5up.net/license">Creative Commons</a> license.<!--]-->' <!--[-->for free under the <a href="https://html5up.net/license">Creative Commons</a> license.<!--]-->'
logo = "fa-diamond"
copyright = "Untitled" copyright = "Untitled"
[[params.social]] [[params.social]]

View file

@ -21,7 +21,7 @@
<!-- Header --> <!-- Header -->
<header id="header"> <header id="header">
<div class="logo"> <div class="logo">
<span class="icon fa-diamond"></span> <span class="icon {{ .Site.Params.logo }}"></span>
</div> </div>
<div class="content"> <div class="content">
<div class="inner"> <div class="inner">