aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/manifest.html
blob: 4bd935a5cf07d04ba4b958e24d53a1db9ca571b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{- $icon := resources.Get .Site.Params.webmanifest.logo -}}

{{- $icon32         := $icon.Fit "32x32"   -}}
{{- $icon16         := $icon.Fit "16x16"   -}}
{{- $appleTouchIcon := $icon.Fit "180x180" -}}

{{ $ico := $icon32.Content | resources.FromString "/favicon.ico" }}

<link rel="icon" href="{{ $ico.RelPermalink | relURL }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ $icon16.RelPermalink | relURL }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ $icon32.RelPermalink | relURL }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ $appleTouchIcon.RelPermalink | relURL }}">
<link rel="manifest" href="/site.webmanifest">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">