fix(web): fingerprint screenshot URLs (bust proxy cache) + fix header logo aspect

This commit is contained in:
vjrj 2026-07-15 12:46:59 +02:00
parent eb8c75cf44
commit 6292c741be
3 changed files with 5 additions and 5 deletions

View file

@ -62,7 +62,7 @@ a { color: var(--green); }
font-size: 1.25rem; font-size: 1.25rem;
flex-shrink: 0; flex-shrink: 0;
} }
.brand img { border-radius: 8px; } .brand img { height: 36px; width: auto; object-fit: contain; }
.site-nav { .site-nav {
display: flex; display: flex;
align-items: center; align-items: center;

View file

@ -11,7 +11,7 @@
{{ end }} {{ end }}
{{ partial "store-badges.html" . }} {{ partial "store-badges.html" . }}
</div> </div>
{{ $shot := resources.Get (printf "screenshots/%s/home.png" $lang) }} {{ $shot := resources.Get (printf "screenshots/%s/home.png" $lang) | fingerprint }}
{{ with $shot }} {{ with $shot }}
<div class="hero-shot"> <div class="hero-shot">
<div class="phone"><img src="{{ .RelPermalink }}" alt="Tane" loading="eager" /></div> <div class="phone"><img src="{{ .RelPermalink }}" alt="Tane" loading="eager" /></div>
@ -42,7 +42,7 @@
<h2>{{ T "screenshotsTitle" }}</h2> <h2>{{ T "screenshotsTitle" }}</h2>
<div class="shot-row"> <div class="shot-row">
{{ range $s := $screens }} {{ range $s := $screens }}
{{ $img := resources.Get (printf "screenshots/%s/%s.png" $lang $s) }} {{ $img := resources.Get (printf "screenshots/%s/%s.png" $lang $s) | fingerprint }}
{{ with $img }} {{ with $img }}
<figure class="phone-fig"> <figure class="phone-fig">
<div class="phone"><img src="{{ .RelPermalink }}" alt="Tane {{ $s }}" loading="lazy" /></div> <div class="phone"><img src="{{ .RelPermalink }}" alt="Tane {{ $s }}" loading="lazy" /></div>
@ -51,7 +51,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
{{ $rtl := resources.Get "screenshots/rtl/inventory.png" }} {{ $rtl := resources.Get "screenshots/rtl/inventory.png" | fingerprint }}
{{ with $rtl }} {{ with $rtl }}
<div class="rtl-note"> <div class="rtl-note">
<div class="phone phone-sm"><img src="{{ .RelPermalink }}" alt="Tane RTL" loading="lazy" dir="rtl" /></div> <div class="phone phone-sm"><img src="{{ .RelPermalink }}" alt="Tane RTL" loading="lazy" dir="rtl" /></div>

View file

@ -1,6 +1,6 @@
<header class="site-header"> <header class="site-header">
<a class="brand" href="{{ "/" | relLangURL }}"> <a class="brand" href="{{ "/" | relLangURL }}">
<img src="/logo.png" alt="Tane" width="36" height="36" /> <img src="/logo.png" alt="Tane" width="21" height="36" />
<span>Tane</span> <span>Tane</span>
</a> </a>
<nav class="site-nav"> <nav class="site-nav">