1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-28 00:10:28 -04:00
jarv.is/layouts/partials/head/favicons.html
Jake Jarvis 3a3849e8ec
add a partial template that returns an asset's URL and hash from webpack's manifest
still a mess but slightly more modular. also added a real 404 page.
2021-09-03 11:16:27 -04:00

14 lines
529 B
HTML

{{- with partial "functions/webpack" (dict "context" . "src" "images/favicon.ico") }}
<link rel="icon" href="{{ .src }}">
{{ end -}}
{{- with partial "functions/webpack" (dict "context" . "src" "images/favicon.svg") }}
<link rel="icon" href="{{ .src }}" type="image/svg+xml">
{{ end -}}
{{- with partial "functions/webpack" (dict "context" . "src" "images/apple-touch-icon.png") }}
<link rel="apple-touch-icon" href="{{ .src }}" sizes="180x180">
{{ end -}}
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">