mirror of https://github.com/jlelse/GoBlog
Emoji favicons
This commit is contained in:
parent
312110f443
commit
c1d05c679f
|
@ -110,6 +110,7 @@ type configUser struct {
|
||||||
Name string `mapstructure:"name"`
|
Name string `mapstructure:"name"`
|
||||||
Password string `mapstructure:"password"`
|
Password string `mapstructure:"password"`
|
||||||
Picture string `mapstructure:"picture"`
|
Picture string `mapstructure:"picture"`
|
||||||
|
Emoji string `mapstructure:"emoji"`
|
||||||
Link string `mapstructure:"link"`
|
Link string `mapstructure:"link"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,14 @@
|
||||||
<meta name=viewport content="width=device-width,initial-scale=1">
|
<meta name=viewport content="width=device-width,initial-scale=1">
|
||||||
<meta http-equiv=x-ua-compatible content="IE=edge">
|
<meta http-equiv=x-ua-compatible content="IE=edge">
|
||||||
<link rel="stylesheet" href="{{ asset "css/styles.css" }}">
|
<link rel="stylesheet" href="{{ asset "css/styles.css" }}">
|
||||||
{{ with user.Picture }}<link rel="shortcut icon" href="{{ . }}">{{ end }}
|
{{ if user.Emoji }}
|
||||||
|
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ user.Emoji }}</text></svg>">
|
||||||
|
{{ if user.Picture }}
|
||||||
|
<link rel="shortcut alternate icon" href="{{ user.Picture }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ else if user.Picture }}
|
||||||
|
<link rel="shortcut icon" href="{{ user.Picture }}">
|
||||||
|
{{ end }}
|
||||||
{{ with .Canonical }}<link rel="canonical" href="{{ . }}">{{ end }}
|
{{ with .Canonical }}<link rel="canonical" href="{{ . }}">{{ end }}
|
||||||
{{ template "title" . }}
|
{{ template "title" . }}
|
||||||
<link rel="alternate" type="application/rss+xml" title="RSS ({{ .Blog.Title }})" href="{{ .Blog.Path }}.rss"/>
|
<link rel="alternate" type="application/rss+xml" title="RSS ({{ .Blog.Title }})" href="{{ .Blog.Path }}.rss"/>
|
||||||
|
|
Loading…
Reference in New Issue