1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-30 02:05:57 -04:00

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.
This commit is contained in:
2021-09-03 11:16:27 -04:00
parent a304fa5079
commit 3a3849e8ec
13 changed files with 97 additions and 111 deletions
+9 -11
View File
@@ -1,15 +1,13 @@
{{ with .Site.Data.manifest }}
{{- with index . "images/favicon.ico" }}
<link rel="icon" href="{{ .src | absURL }}">
{{- end }}
{{- with partial "functions/webpack" (dict "context" . "src" "images/favicon.ico") }}
<link rel="icon" href="{{ .src }}">
{{ end -}}
{{- with index . "images/favicon.svg" }}
<link rel="icon" href="{{ .src | absURL }}" type="image/svg+xml">
{{- end -}}
{{- with partial "functions/webpack" (dict "context" . "src" "images/favicon.svg") }}
<link rel="icon" href="{{ .src }}" type="image/svg+xml">
{{ end -}}
{{- with index . "images/apple-touch-icon.png" }}
<link rel="apple-touch-icon" href="{{ .src | absURL }}" sizes="180x180">
{{- end }}
{{ 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 }}">