fix(web): fingerprint screenshot URLs (bust proxy cache) + fix header logo aspect
This commit is contained in:
parent
eb8c75cf44
commit
6292c741be
3 changed files with 5 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ a { color: var(--green); }
|
|||
font-size: 1.25rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.brand img { border-radius: 8px; }
|
||||
.brand img { height: 36px; width: auto; object-fit: contain; }
|
||||
.site-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
{{ end }}
|
||||
{{ partial "store-badges.html" . }}
|
||||
</div>
|
||||
{{ $shot := resources.Get (printf "screenshots/%s/home.png" $lang) }}
|
||||
{{ $shot := resources.Get (printf "screenshots/%s/home.png" $lang) | fingerprint }}
|
||||
{{ with $shot }}
|
||||
<div class="hero-shot">
|
||||
<div class="phone"><img src="{{ .RelPermalink }}" alt="Tane" loading="eager" /></div>
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
<h2>{{ T "screenshotsTitle" }}</h2>
|
||||
<div class="shot-row">
|
||||
{{ 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 }}
|
||||
<figure class="phone-fig">
|
||||
<div class="phone"><img src="{{ .RelPermalink }}" alt="Tane {{ $s }}" loading="lazy" /></div>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ $rtl := resources.Get "screenshots/rtl/inventory.png" }}
|
||||
{{ $rtl := resources.Get "screenshots/rtl/inventory.png" | fingerprint }}
|
||||
{{ with $rtl }}
|
||||
<div class="rtl-note">
|
||||
<div class="phone phone-sm"><img src="{{ .RelPermalink }}" alt="Tane RTL" loading="lazy" dir="rtl" /></div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<header class="site-header">
|
||||
<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>
|
||||
</a>
|
||||
<nav class="site-nav">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue