mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user