Skip to content

Commit b22d0b3

Browse files
committed
Use fingerprint for logo.png
Force the browser to reload the image if it changed on the server. See https://gohugo.io/functions/resources/fingerprint/
1 parent 3bd2cec commit b22d0b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
File renamed without changes.

layouts/partials/header.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<a href="/">
2-
<img src="/logo.png" class="mt-4 mb-2" width="400" height="174" alt="Open Transport Community Logo" />
2+
{{ with resources.Get "img/logo.png" | resources.Fingerprint }}
3+
<img src="{{ .Permalink }}" class="mt-4 mb-2" width="{{ .Width }}" height="{{ .Height }}" alt="Open Transport Community Logo" />
4+
{{ end }}
35
</a>
46

57
<h1 class="text-3xl sm:text-5xl font-bold my-4 text-center">

0 commit comments

Comments
 (0)