feat: favicon

This commit is contained in:
Matthieu Bessat 2023-11-01 17:07:15 +01:00
parent 47f2cec014
commit c6705e8be2
9 changed files with 178 additions and 6 deletions

View file

@ -8,7 +8,7 @@
<meta name="author" content="{{ . }}">
{{ end }}
{{- $title := partialCached "data/title" . .RelPermalink -}}
{{ $title := partialCached "data/title" . .RelPermalink }}
<title>{{ $title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
@ -19,9 +19,9 @@
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{ end }}
{{ with .Site.Params.favicon }}
<link rel="shortcut icon" href="{{ . }}" />
{{ end }}
<link rel="shortcut icon" type="image/png" href="/favicon_md.png">
<link rel="shortcut icon" sizes="192x192" href="/favicon_md.png">
<link rel="apple-touch-icon" href="/favicon_md.png">
<!-- Note: j'ai galérer à rajouter du scss car en fait y'avait déja une variable $style de définit plus haut... -->
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Fingerprint }}