Fix favicons: use section-specific favicon.svg per site

Add <link rel="icon"> tag pointing to /favicon.svg for hub and
/{section}/favicon.svg for all other sections. Previously browsers
defaulted to root favicon (hub moon emoji) on all pages.
This commit is contained in:
2026-09-11 13:25:01 +02:00
parent ecbda171a6
commit 7843d0061a
+1
View File
@@ -20,6 +20,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<link rel="icon" href="{% if section and section != 'hub' %}/{{ section }}/favicon.svg{% else %}/favicon.svg{% endif %}">
<link rel="stylesheet" href="/shared-base.css">
<style>:root { --accent: {% if section == 'infra' %}#99333A{% elif section == 'smarthome' %}#1f8a8a{% elif section == 'code' %}#3E5098{% elif section == 'retro' %}#8a6d3b{% else %}#3b6ea5{% endif %}; }</style>
<script type="application/ld+json">