Allow flexible favicon location

* Fix README for these changes
This commit is contained in:
Nishanth Shanmugham
2015-08-24 23:15:57 -05:00
parent 1b5cab40a8
commit 3c6ad30b83
2 changed files with 4 additions and 6 deletions

View File

@@ -3,15 +3,13 @@
<link rel="stylesheet" href="/css/pygments.css">
<link rel="stylesheet" href="/css/main.css">
{{ if .Site.Params.WebfontsFile }}
<link rel="stylesheet" href="{{ .Site.Params.WebfontsFile }}">
{{ else }}
<link rel="stylesheet" href="/css/webfonts.css">
<link rel="stylesheet" href="/{{ .Site.Params.WebfontsFile }}">
{{ end }}
<!-- Icon -->
<link rel="shortcut icon"
{{ if .Site.Params.FaviconFile }}
href="/img/{{ .Site.Params.FaviconFile }}"
href="/{{ .Site.Params.FaviconFile }}"
{{ else }}
href="/img/favicon.ico"
{{ end }}