Skip to content

Commit 23b0293

Browse files
authored
Merge pull request #5 from si/codex/add-si-ligature-logo-and-favicon
2 parents 278bb86 + 916e6df commit 23b0293

3 files changed

Lines changed: 38 additions & 8 deletions

File tree

_includes/layouts/base.njk

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
Update me: Remove comment if you want a CSP.
1313
<meta http-equiv="Content-Security-Policy" content="{{ csp.regular | safe }}">
1414
-->
15-
{% if isdevelopment %}
16-
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
17-
{% else %}
18-
<link rel="icon" href="{{ '/img/favicon/favicon-192x192.png' | addHash }}" type="image/png">
19-
{% endif %}
15+
<link rel="icon" href="{{ '/img/si-ligature.svg' | addHash }}" type="image/svg+xml">
2016
<meta name="theme-color" content="#f9c412">
2117
<meta name="robots" content="max-snippet:-1, max-image-preview: large, max-video-preview: -1">
2218
<title>{{ renderData.title or title or metadata.title | escape }}</title>
@@ -68,7 +64,12 @@
6864
<header>
6965
<nav>
7066
<div id="nav">
71-
<h1><a href="{{ '/' | url }}" title="Homepage">{{ metadata.title }}</a></h1>
67+
<h1>
68+
<a href="{{ '/' | url }}" class="site-logo" title="Homepage">
69+
<img src="{{ '/img/si-ligature.svg' | addHash }}" alt="" class="site-logo-mark" width="28" height="28" aria-hidden="true">
70+
<span>{{ metadata.title }}</span>
71+
</a>
72+
</h1>
7273
{#- Read more about `eleventy-navigation` at https://www.11ty.dev/docs/plugins/navigation/ #}
7374
{%- for entry in collections.all | eleventyNavigation %}
7475
<a href="{{ entry.url | url }}">{{ entry.title }}</a>

css/main.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,17 +798,31 @@ header nav h1 {
798798
margin: 0;
799799
text-align: left;
800800
}
801+
header nav a.site-logo {
802+
display: inline-flex;
803+
align-items: center;
804+
gap: 0.5em;
805+
margin-left: 0;
806+
}
807+
header nav a.site-logo span {
808+
display: inline-block;
809+
}
810+
header nav img.site-logo-mark {
811+
width: 1.75em;
812+
height: 1.75em;
813+
border-radius: 999px;
814+
}
801815
header nav a {
802816
font-weight: 700;
803817
text-decoration: none;
804818
font-family: var(--font-family-base);
805819
color: #181818;
806820
margin-left: 1.5em;
807821
}
808-
header nav a:first-of-type {
822+
header nav #nav > a:first-of-type {
809823
margin-left: auto;
810824
}
811-
header nav a:last-of-type {
825+
header nav #nav > a:last-of-type {
812826
margin-right: 1.5em;
813827
}
814828
header nav label {

img/si-ligature.svg

Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)