diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d59a00f..8789b2d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,10 +8,9 @@ + - {{ if fileExists "static/assets/favicon.png" -}} - - {{- end }} + {{ partial "favicons.html" . }} {{- $style := resources.Get "sass/style.scss" | toCSS | minify | fingerprint }} diff --git a/layouts/partials/favicons.html b/layouts/partials/favicons.html new file mode 100644 index 0000000..1b26af0 --- /dev/null +++ b/layouts/partials/favicons.html @@ -0,0 +1,21 @@ +{{- if fileExists "static/assets/favicon.png" -}} + +{{- end }} +{{- if fileExists "static/assets/favicon-16x16.png" }} + +{{- end }} +{{- if fileExists "static/assets/favicon-32x32.png" }} + +{{- end }} +{{- if fileExists "static/assets/favicon-48x48.png" }} + +{{- end }} +{{- if fileExists "static/assets/favicon-64x64.png" }} + +{{- end }} +{{- if fileExists "static/assets/favicon-96x96.png" }} + +{{- end }} +{{- if fileExists "static/assets/apple-touch-icon.png" }} + +{{- end }}