add favicon.html
This commit is contained in:
24
layouts/partials/favicons.html
Normal file
24
layouts/partials/favicons.html
Normal file
@ -0,0 +1,24 @@
|
||||
<!--
|
||||
The Favicons for Web, Android, Microsoft, and iOS (iPhone and iPad) Apps
|
||||
Generated by: https://realfavicongenerator.net/
|
||||
-->
|
||||
|
||||
{{- $favicon := resources.Get "img/favicons/apple-touch-icon.png" -}}
|
||||
{{- $favicon32 := resources.Get "img/favicons/favicon-32x32.png" -}}
|
||||
{{- $favicon16 := resources.Get "img/favicons/favicon-16x16.png" -}}
|
||||
{{- $faviconIco := resources.Get "img/favicons/favicon.ico" -}}
|
||||
{{- $webmanifest := resources.Get "img/favicons/site.webmanifest" -}}
|
||||
{{- $browserconfig := resources.Get "img/favicons/browserconfig.xml" -}}
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ $favicon.RelPermalink }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ $favicon32.RelPermalink }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ $favicon16.RelPermalink }}">
|
||||
{{ if site.Params.pwa.enabled }}
|
||||
<link rel="manifest" href="{{ $webmanifest.RelPermalink }}">
|
||||
{{ end }}
|
||||
<link rel="shortcut icon" href="{{ $faviconIco.RelPermalink }}">
|
||||
<meta name="apple-mobile-web-app-title" content="{{ site.Title }}">
|
||||
<meta name="application-name" content="{{ site.Title }}">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="msapplication-config" content="{{ $browserconfig.RelPermalink }}">
|
||||
<meta name="theme-color" content="#ffffff">
|
Reference in New Issue
Block a user