mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Allow flexible favicon location
* Fix README for these changes
This commit is contained in:
@@ -102,13 +102,13 @@ DateForm = "Jan 2, 2006" # required
|
||||
Description = "eat, sleep, rave, repeat"
|
||||
Email = "username@hogwarts.edu"
|
||||
Facebook = "//facebook.com/username"
|
||||
FaviconFile = "myicon.ico" # relative to img/ directory, defaults to themes/cocoa/img/favicon.ico
|
||||
FaviconFile = "img/myicon.ico" # relative to static/ directory, defaults to the icon at themes/cocoa/img/favicon.ico
|
||||
GATracker = "<Google-Analytics-ID>"
|
||||
GitHub = "//github.com/username"
|
||||
Lang = "en" # <body lang="en">
|
||||
LinkedIn = "//linkedin.com/in/username"
|
||||
Twitter = "//twitter.com/username"
|
||||
WebfontsFile = "/css/mywebfontsfile.css" # relative to static directory, defaults to /css/webfonts.css
|
||||
WebfontsFile = "css/mywebfontsfile.css" # relative to static/ directory, defaults to empty string
|
||||
````
|
||||
|
||||
# Extras
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user