Add support for favicons
See https://favicon.io/favicon-converter for generating a favicon and the link references to add to the `head` of the HTML template.master v0.1.5
parent
8c5110ddda
commit
950041aea9
|
@ -15,6 +15,18 @@
|
||||||
{{ block "icons" . }}
|
{{ block "icons" . }}
|
||||||
{{ partial "icons.html" . }}
|
{{ partial "icons.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if (fileExists "static/apple-touch-icon.png") -}}
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||||
|
{{- end }}
|
||||||
|
{{ if (fileExists "static/favicon-32x32.png") -}}
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||||
|
{{- end }}
|
||||||
|
{{ if (fileExists "static/favicon-16x16.png") -}}
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||||
|
{{- end }}
|
||||||
|
{{ if (fileExists "static/site.webmanifest") -}}
|
||||||
|
<link rel="manifest" href="/site.webmanifest">
|
||||||
|
{{- end }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -65,4 +77,4 @@
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue