mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-12-02 02:25:03 +03:00
Merge pull request #19 from RPGillespie6/make_favicon_configurable
Make favicon configurable
This commit is contained in:
commit
54e5006109
2 changed files with 6 additions and 2 deletions
|
@ -81,6 +81,8 @@ paginate = 5
|
|||
fullWidthTheme = false
|
||||
# center theme with default width
|
||||
centerTheme = false
|
||||
# set a custom favicon (default is a `themeColor` square)
|
||||
# favicon = "favicon.ico"
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
|
|
|
@ -16,8 +16,10 @@
|
|||
|
||||
<!-- Icons -->
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "img/apple-touch-icon-144-precomposed.png" | absURL }}">
|
||||
{{ with $.Site.Params.ThemeColor }}
|
||||
<link rel="shortcut icon" href="{{ printf "img/favicon/%s.png" . | absURL }}">
|
||||
{{ if isset $.Site.Params "favicon" }}
|
||||
<link rel="shortcut icon" href="{{ $.Site.Params.favicon | absURL }}">
|
||||
{{ else }}
|
||||
<link rel="shortcut icon" href="{{ printf "img/favicon/%s.png" $.Site.Params.ThemeColor | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
<!-- Twitter Card -->
|
||||
|
|
Loading…
Reference in a new issue