Add site logo to header
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+7
-4
@@ -89,12 +89,15 @@ header.site .inner {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
header.site .brand {
|
header.site .brand {
|
||||||
font-family: var(--font-heading);
|
display: flex;
|
||||||
font-weight: 700;
|
align-items: center;
|
||||||
font-size: 1.1rem;
|
|
||||||
color: #ffffff;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
header.site .brand img {
|
||||||
|
height: 44px;
|
||||||
|
width: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
/* The nav gets its own Soft Plum band nested in the sapphire header, per
|
/* The nav gets its own Soft Plum band nested in the sapphire header, per
|
||||||
the brand notes' "Navigation Bar: Soft Plum" — distinct from the header's
|
the brand notes' "Navigation Bar: Soft Plum" — distinct from the header's
|
||||||
own sapphire background rather than inheriting it. */
|
own sapphire background rather than inheriting it. */
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 683 KiB |
@@ -21,7 +21,11 @@
|
|||||||
|
|
||||||
<header class="site">
|
<header class="site">
|
||||||
<div class="inner">
|
<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">
|
<nav aria-label="Primary">
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user