1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 17:45:31 -04:00

hugo mod init, and other cleanup

This commit is contained in:
2020-03-10 23:11:10 -04:00
parent 2b6466fa2f
commit 6c59bb2edc
16 changed files with 147 additions and 123 deletions

View File

@@ -1,10 +1,10 @@
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}" sizes="180x180">
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | absURL }}" color="#009cdf">
{{ range (split .png_sizes " ") -}}
{{ range (split .pngSizes " ") -}}
<link rel="icon" href="{{ (printf "favicon-%v.png" .) | absURL }}" sizes="{{ . }}x{{ . }}">
{{ end -}}
{{ $s := slice -}}
{{ range (split .ico_sizes " ") }}{{ $s = $s | append (printf "%vx%v" . .) }}{{ end -}}
{{ range (split .icoSizes " ") }}{{ $s = $s | append (printf "%vx%v" . .) }}{{ end -}}
<link rel="shortcut icon" href="{{ "favicon.ico" | absURL }}" sizes="{{ delimit $s " " }}">