This commit is contained in:
2026-08-15 10:38:53 -07:00
parent 68dfdfa33b
commit 8d43f5259b
30 changed files with 1002 additions and 768 deletions
@@ -0,0 +1,28 @@
{{ define "main" }}
<article class="about">
<div class="about__banner">
<div class="about__banner-inner container">
{{ with .Site.Params.logo_image_full }}
<img
class="about__logo"
src="{{ . | relURL }}"
alt="{{ $.Site.Params.logo | default $.Site.Title }}"
width="512"
height="512"
decoding="async"
>
{{ end }}
<div class="about__intro">
<h1 class="about__title">{{ .Title }}</h1>
{{ with .Description }}
<p class="about__lead">{{ . }}</p>
{{ end }}
</div>
</div>
</div>
<div class="about__body container container--narrow content">{{ .Content }}</div>
<div class="about__cta-wrap container container--narrow">
<a class="stage__cta" href="{{ "/posts/" | relURL }}">Open the build log</a>
</div>
</article>
{{ end }}
+3 -2
View File
@@ -1,11 +1,12 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<html lang="{{ with .Site.Language.Locale }}{{ . }}{{ else }}en{{ end }}">
<head>
{{ partial "head.html" . }}
</head>
<body class="page">
<a class="skip-link" href="#main">Skip to content</a>
{{ partial "header.html" . }}
<main class="page__main">
<main id="main" class="page__main">
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
+9 -4
View File
@@ -1,17 +1,22 @@
{{ define "main" }}
<section class="section container">
<header class="section__header">
<p class="section__eyebrow">Index</p>
<h1 class="section__title">{{ .Title }}</h1>
{{ with .Content }}
<div class="section__intro content">{{ . }}</div>
{{ end }}
</header>
<ul class="post-list">
<ol class="log__list">
{{ range .Pages.ByDate.Reverse }}
<li class="post-list__item">
{{ partial "post-card.html" . }}
<li class="log__item">
<a class="log__row" href="{{ .RelPermalink }}">
<time class="log__date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "060102" }}</time>
<span class="log__type">{{ with .Params.type }}{{ . }}{{ else }}note{{ end }}</span>
<span class="log__name">{{ .Title }}</span>
</a>
</li>
{{ end }}
</ul>
</ol>
</section>
{{ end }}
+31 -3
View File
@@ -1,5 +1,5 @@
{{ define "main" }}
<article class="post container">
<article class="post container container--narrow">
<header class="post__header">
<p class="post__meta">
{{ with .Params.type }}<span class="post__type">{{ humanize . }}</span>{{ end }}
@@ -10,8 +10,14 @@
{{ with .Params.languages }}
<p class="post__tags">{{ delimit . ", " }}</p>
{{ end }}
{{ with .Params.series }}
<p class="post__series">Part of {{ . }}</p>
{{ with .GetTerms "series" }}
{{ range . }}
<p class="post__series">Part of <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></p>
{{ end }}
{{ else }}
{{ with .Params.series }}
<p class="post__series">Part of <a href="{{ printf "/series/%s/" . | relURL }}">{{ replace . "-" " " | title }}</a></p>
{{ end }}
{{ end }}
{{ with .Params.video_url }}
<figure class="post__video">
@@ -29,5 +35,27 @@
{{ end }}
</header>
<div class="post__body content">{{ .Content }}</div>
{{ with .Params.series }}
{{ $seriesName := . }}
{{ $siblings := where (where $.Site.RegularPages "Section" "eq" "posts") "Params.series" "eq" $seriesName }}
{{ $sorted := $siblings.ByDate }}
{{ if gt (len $sorted) 1 }}
<nav class="series-nav" aria-label="More in this series">
<p class="series-nav__label">In this series</p>
<ol class="series-nav__list">
{{ range $sorted }}
<li class="series-nav__item{{ if eq $.RelPermalink .RelPermalink }} series-nav__item--current{{ end }}">
{{ if eq $.RelPermalink .RelPermalink }}
<span class="series-nav__current">{{ .Title }}</span>
{{ else }}
<a class="series-nav__link" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
</li>
{{ end }}
</ol>
</nav>
{{ end }}
{{ end }}
</article>
{{ end }}
@@ -0,0 +1,20 @@
{{ define "main" }}
<section class="section container">
<header class="section__header">
<p class="section__eyebrow">Series</p>
<h1 class="section__title">Active builds</h1>
<p class="section__intro">Prototype threads Im writing while I build them.</p>
</header>
<div class="workbench__grid">
{{ range .Pages }}
<a class="workbench__cell" href="{{ .RelPermalink }}">
<span class="workbench__count">{{ len .Pages }} {{ if eq (len .Pages) 1 }}log{{ else }}logs{{ end }}</span>
<span class="workbench__name">{{ .LinkTitle }}</span>
{{ with .Description }}
<span class="workbench__desc">{{ . }}</span>
{{ end }}
</a>
{{ end }}
</div>
</section>
{{ end }}
@@ -0,0 +1,23 @@
{{ define "main" }}
<section class="section container">
<header class="section__header">
<p class="section__eyebrow">{{ if eq .Data.Singular "series" }}Series{{ else if eq .Data.Singular "tag" }}Tag{{ else }}{{ .Data.Singular | humanize }}{{ end }}</p>
<h1 class="section__title">{{ .Title }}</h1>
{{ with .Content }}
<div class="section__intro content">{{ . }}</div>
{{ end }}
{{ with .Description }}
{{ if not $.Content }}
<p class="section__intro">{{ . }}</p>
{{ end }}
{{ end }}
</header>
<ul class="post-list">
{{ range .Pages.ByDate.Reverse }}
<li class="post-list__item">
{{ partial "post-card.html" . }}
</li>
{{ end }}
</ul>
</section>
{{ end }}