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
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue