Skip to content

Commit 9893cd5

Browse files
committedNov 12, 2023
Top nav
1 parent f2c519b commit 9893cd5

File tree

7 files changed

+59
-23
lines changed

7 files changed

+59
-23
lines changed
 

‎LICENSE

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
### SPDX-License-Identifier: MIT
22

3-
**Except as otherwise noted (below and/or in individual files), this project is copyrighted (c) 2019 Andrew Branch and licensed under the [MIT License](LICENSE-MIT) ([online](https://opensource.org/licenses/MIT)).**
3+
**Except as otherwise noted (below and/or in individual files), this project is copyrighted (c) 2023 Andrew Branch and licensed under the [MIT License](LICENSE-MIT) ([online](https://opensource.org/licenses/MIT)).**
44

55
### SPDX-License-Identifier: CC-BY-4.0
66

7-
- Content in [`posts`](posts) is licensed under a [Creative Commons Attribution 4.0 International License](LICENSE-CC-BY-4.0) ([online](https://creativecommons.org/licenses/by/4.0/legalcode)).
7+
- Markdown content in [`content/posts`](./content/posts) (excluding images) is licensed under a [Creative Commons Attribution 4.0 International License](LICENSE-CC-BY-4.0) ([online](https://creativecommons.org/licenses/by/4.0/legalcode)).
88

99
### All Rights Reserved
1010

11-
- [`icons.sketch`](icons.sketch), [`src/favicon.png`](src/favicon.png), and the contents of [`src/images`](src/images) are copyrighted (c) 2019 Andrew Branch, All Rights Reserved.
11+
- [`icons.sketch`](icons.sketch) and the contents of [`content/images`](./content/images), [`content/posts/images`](./content/posts/images), and [`content/posts/archive/images`](./content/posts/archive/images) are copyrighted (c) 2023 Andrew Branch, All Rights Reserved.

‎_layouts/base.liquid

+18-5
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,21 @@
3131

3232
<div class="flex flex-col justify-between h-full max-w-[var(--width-content)] px-[0.8rem] my-0 mx-auto">
3333
<div>
34-
<header>
35-
<a href="/" class="home-link">{{ metadata.title }}</a>
36-
34+
<header class="mt-4 mb-8 flex items-center justify-between">
3735
<nav>
3836
<h2 class="visually-hidden">Top level navigation menu</h2>
39-
<ul class="nav">
40-
<li class="nav-item">
37+
38+
<ul class="flex items-center m-0">
39+
<li class="mr-6">
40+
<a href="/">
41+
<img src="/images/logo.svg" width="64" height="64" class="m-0" alt="Andrew Branch">
42+
</a>
43+
</li>
44+
45+
<li class="pt-4">
4146
<a
4247
href="/about"
48+
class="font-grotesk text-textSecondary lowercase no-underline hover:underline"
4349
{% if entry.url == '/about' %}
4450
aria-current="page"
4551
{% endif %}
@@ -48,6 +54,13 @@
4854
</li>
4955
</ul>
5056
</nav>
57+
58+
<div class="pt-4">
59+
<a href="https://github.com/andrewbranch/blog" class="text-[28px]">
60+
<span class="visually-hidden">View source on GitHub</span>
61+
<div aria-hidden="true" class="i-mdi:github"></div>
62+
</a>
63+
</div>
5164
</header>
5265
<main id="skip">
5366
{{ content }}

‎content/styles/uno.css

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* layer: preflights */
22
*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}
3+
/* layer: icons */
4+
.i-mdi\:github{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
35
/* layer: shortcuts */
46
.container{width:100%;}
57
@media (min-width: 414px){
@@ -13,12 +15,16 @@
1315
.relative{position:relative;}
1416
.sticky{position:sticky;}
1517
.static{position:static;}
18+
.m-0{margin:0;}
1619
.mx-auto{margin-left:auto;margin-right:auto;}
1720
.my{margin-top:1rem;margin-bottom:1rem;}
1821
.my-0{margin-top:0;margin-bottom:0;}
1922
.mb-2{margin-bottom:calc(var(--rhythm) * .25rem * 2);}
23+
.mb-8{margin-bottom:calc(var(--rhythm) * .25rem * 8);}
2024
.me{margin-inline-end:1rem;}
25+
.mr-6{margin-right:calc(var(--rhythm) * .25rem * 6);}
2126
.ms{margin-inline-start:1rem;}
27+
.mt-4{margin-top:calc(var(--rhythm) * .25rem * 4);}
2228
.block{display:block;}
2329
.contents{display:contents;}
2430
.h-full{height:100%;}
@@ -32,21 +38,25 @@
3238
.b{border-width:1px;}
3339
.px{padding-left:1rem;padding-right:1rem;}
3440
.px-\[0\.8rem\]{padding-left:0.8rem;padding-right:0.8rem;}
41+
.pt-4{padding-top:calc(var(--rhythm) * .25rem * 4);}
3542
.before\:pr-\[\.64rem\]::before{padding-right:.64rem;}
3643
.after\:pl-\[\.64rem\]::after{padding-left:.64rem;}
3744
.text-center{text-align:center;}
3845
.text-\[1\.2rem\]{font-size:1.2rem;}
3946
.text-\[2\.8rem\]{font-size:2.8rem;}
47+
.text-\[28px\]{font-size:28px;}
4048
.font-medium{font-weight:500;}
4149
.font-normal{font-weight:400;}
4250
.font-grotesk{font-family:var(--font-grotesk);}
51+
.lowercase{text-transform:lowercase;}
4352
.italic{font-style:italic;}
4453
.text-textHighContrast{color:var(--color-text-high-contrast);}
4554
.text-textMuted{color:var(--color-text-muted);}
4655
.text-textSecondary{color:var(--color-text-secondary);}
4756
.before\:text-textDisabled::before{color:var(--color-text-disabled);}
4857
.after\:text-textDisabled::after{color:var(--color-text-disabled);}
4958
.underline{text-decoration-line:underline;}
59+
.hover\:underline:hover{text-decoration-line:underline;}
5060
.no-underline{text-decoration:none;}
5161
.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
5262
.before\:content-\[\'\~\'\]::before{content:'~';}

‎eleventy.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = (eleventyConfig) => {
3434
eleventyConfig.addFilter("inspect", (value) => `<pre>${JSON.stringify(value, null, 2)}</pre>`);
3535

3636
eleventyConfig.addPlugin(bundlerPlugin);
37+
eleventyConfig.addPassthroughCopy("content/images");
3738
eleventyConfig.addPassthroughCopy("content/styles/fonts");
3839
eleventyConfig.addPassthroughCopy("content/_redirects");
3940

‎package-lock.json

+24-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@11ty/eleventy": "^2.0.1",
1717
"@11ty/eleventy-img": "^3.1.8",
1818
"@11ty/eleventy-plugin-bundle": "^1.0.4",
19+
"@iconify-json/mdi": "^1.1.55",
1920
"@ryanxcharles/markdown-it-katex": "^4.0.2",
2021
"@shopify/prettier-plugin-liquid": "^1.3.4",
2122
"@unocss/cli": "^0.57.2",

‎uno.config.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
import { defineConfig, presetUno } from "unocss";
2+
import { defineConfig, presetUno, presetIcons } from "unocss";
33

44
export default defineConfig({
55
cli: {
@@ -9,6 +9,7 @@ export default defineConfig({
99
},
1010
},
1111
presets: [
12+
presetIcons(),
1213
presetUno({
1314
dark: "media",
1415
}),

0 commit comments

Comments
 (0)