Add site logo to header

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-14 07:16:37 -04:00
parent da71153a73
commit 422947859b
3 changed files with 12 additions and 5 deletions
+5 -1
View File
@@ -21,7 +21,11 @@
<header class="site">
<div class="inner">
<a class="brand" href="/">{{ .Site.Title }}</a>
{{ $logo := resources.Get "images/logo-white.png" }}
{{ $logoSm := $logo.Resize "480x" }}
<a class="brand" href="/">
<img src="{{ $logoSm.RelPermalink }}" width="{{ $logoSm.Width }}" height="{{ $logoSm.Height }}" alt="{{ .Site.Title }}">
</a>
<nav aria-label="Primary">
{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>