dedupe: single canonical hyperhive.svg for favicon + og + hero
mara nit on #1: the three SVGs in static/ were identical copies (md5 1108d7bd79ca…). Dropped favicon.svg + hex-mark.svg; kept hyperhive.svg as the single source. Both consumers now point at it: `<link rel="icon">` and the hero's `load_data(path="static/ hyperhive.svg", format="plain")`. Also fixed: the original `load_data(path="hex-mark.svg")` would have failed at build time anyway — Zola's `load_data` resolves from project root, so files in `static/` need the full prefix + `format="plain"` to come back as raw markup. Build was never validated locally (remote-builder unreachable from agent), so the typo would have surfaced on the operator's first `nix build`. Caught it during the dedupe pass. If a future visual divergence is wanted (simpler favicon, titled og:image), can split back into named copies then.
This commit is contained in:
parent
d3a55c5631
commit
3b4668aea8
5 changed files with 10 additions and 200 deletions
|
|
@ -14,7 +14,7 @@
|
|||
<meta property="og:image" content="{{ get_url(path='hyperhive.svg') }}">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="{{ get_url(path='favicon.svg') }}">
|
||||
<link rel="icon" type="image/svg+xml" href="{{ get_url(path='hyperhive.svg') }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path='main.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,13 @@
|
|||
<div class="hero-art" aria-hidden="true">
|
||||
{# Inline so the SVG inherits the page's font + can be styled
|
||||
(hover pulse animation on the rings). Same source as the
|
||||
dashboard branding/hyperhive.svg. #}
|
||||
{% set hex_svg = load_data(path="hex-mark.svg") %}
|
||||
dashboard branding/hyperhive.svg — single canonical copy at
|
||||
static/hyperhive.svg drives favicon + og:image + hero inline.
|
||||
If a future visual divergence is wanted (smaller favicon,
|
||||
titled og:image), split into named copies then.
|
||||
`format="plain"` returns the raw markup string instead of
|
||||
parsing the SVG as XML. #}
|
||||
{% set hex_svg = load_data(path="static/hyperhive.svg", format="plain") %}
|
||||
{{ hex_svg | safe }}
|
||||
</div>
|
||||
<div class="hero-text">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue