Logoimage (#11)

* Fixed installation commands

Removed extra line

* Added custom link capability for tabs. Fixes #4

* Refined robots.txt

* Added logoimage variant
This commit is contained in:
Michel Racic 2017-03-13 14:41:14 +01:00 committed by sethmacleod
parent 87757646a3
commit 518964d13e
2 changed files with 7 additions and 1 deletions

View file

@ -33,6 +33,7 @@ After installation, you will need to configure the config.toml file, change pict
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`. You can change the logo as well with font-awesome icons. The default is set to `fa-diamond`.
To use an image as logo, remove the `logo = "fa-diamond"` line and replace it with `logoimage = "/path/to/image.png"` and place your image at that location in the `static` folder. The image should be in square format and at least 86*86 pixels for best viewing experience.
### Changing pictures ### Changing pictures

View file

@ -6,7 +6,12 @@
<!-- Header --> <!-- Header -->
<header id="header"> <header id="header">
<div class="logo"> <div class="logo">
<span class="icon {{ .Site.Params.logo }}"></span> {{ with .Site.Params.logoimage }}
<img src="{{ . }}" width="100%" style="padding: 10px 10px 10px 10px;">
{{ end }}
{{ with .Site.Params.logo }}
<span class="icon {{ . }}"></span>
{{ end }}
</div> </div>
<div class="content"> <div class="content">
<div class="inner"> <div class="inner">