Ajout favicon.

This commit is contained in:
2026-04-03 14:51:21 +02:00
parent d56c873652
commit 2d2da86f6a
3 changed files with 59 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

+46
View File
@@ -0,0 +1,46 @@
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 32 32" width="32" height="32">
<!-- Background -->
<rect width="32" height="32" rx="2" ry="2" fill="#1d2021"/>
<!-- Prompt -->
<text
x="1" y="8"
font-family="IosevkaTermSS04 Nerd Font Mono" font-size="8"
fill="#d79921"
>
$
</text>
<text
x="9" y="8"
font-family="IosevkaTermSS04 Nerd Font Mono" font-size="8"
fill="#b8bb26"
>
whoami
</text>
<!-- Command result -->
<text
x="1" y="17"
font-family="IosevkaTermSS04 Nerd Font Mono" font-size="8"
fill="#fabd2f"
>
alexis
</text>
<!-- New prompt with cursor -->
<text
x="1" y="26"
font-family="IosevkaTermSS04 Nerd Font Mono" font-size="8"
fill="#d79921"
>
$
</text>
<text
x="9" y="26"
font-family="IosevkaTermSS04 Nerd Font Mono" font-size="8"
fill="#ebdbb2"
>
&#9608;
</text>
</svg>

After

Width:  |  Height:  |  Size: 907 B

+13
View File
@@ -55,5 +55,18 @@
{{ end }}
{{ end }}
{{ with resources.Get "favicon.png" }}
{{ with .Resize "180x" }}
<link rel="apple-touch-icon" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
{{ end }}
{{ $res := . }}
{{ range (slice "256" "128" "96" "64" "48" "32" "16") }}
{{ with $res.Resize (print . "x") }}
<link rel="icon" type="image/png" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}
{{ end }}
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}