Ajout favicon.
This commit is contained in:
@@ -55,5 +55,18 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ with resources.Get "favicon.png" }}
|
||||
{{ with .Resize "180x" }}
|
||||
<link rel="apple-touch-icon" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
|
||||
{{ $res := . }}
|
||||
{{ range (slice "256" "128" "96" "64" "48" "32" "16") }}
|
||||
{{ with $res.Resize (print . "x") }}
|
||||
<link rel="icon" type="image/png" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
|
||||
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
||||
|
||||
Reference in New Issue
Block a user