update website to include birds

This commit is contained in:
2026-09-02 20:11:35 -04:00
parent 4d505fe646
commit 5123b8e987
14 changed files with 60 additions and 133 deletions
+4 -9
View File
@@ -8,35 +8,30 @@
<meta name='og:title' content='{{ .Title }}'>
<meta name='og:description' content='{{ .Description | markdownify | plainify }}'>
<meta name='og:url' content='{{ .Permalink }}'>
<meta name='og:image' content='/espurr.png'>
<meta name='og:image' content='/gray-catbird.png'>
<link rel='preconnect' href='https://rsms.me'>
<link rel='preconnect' href='https://ajlee2006.github.io'>
<link rel='stylesheet' href='https://rsms.me/inter/inter.css'>
{{ $css := resources.Get "style.css" | resources.Minify | resources.Fingerprint }}
<link rel='stylesheet' href='{{ $css.RelPermalink }}'>
<link rel='icon' href='/espurr.png'>
<link rel='icon' href='/gray-catbird.png'>
</head>
<body>
<nav>
<div><a href='https://grasswren.net'>grasswren.net</a></div>
<ul>
<li><a {{ if eq .Lang "home" }}class='active'{{ end }} href='https://grasswren.net'>Home</a></li>
<li><a {{ if eq .Lang "blog" }}class='active'{{ end }} href='https://blog.grasswren.net'>Blog</a></li>
<li><a {{ if eq .Lang "birds" }}class='active'{{ end }} href='https://birds.grasswren.net'>Birds</a></li>
</ul>
</nav>
<header>
<div>
<h1>{{ .Title }} {{ if eq .Page.BundleType "branch" }}<span class='t'>[_lipu_pi_soweli_kili]</span>{{ end }}</h1>
<p>{{ .Description | markdownify }}</p>
</div>
<img src='/espurr.png' alt='Espurr'>
<img src='/gray-catbird.png' alt='Gray Catbird'>
</header>
{{ block "main" . }}
{{ end }}
<footer>
<div><p>by <a href='mailto:lilac@grasswren.net'>Lilac</a> <small>(she/her)</small></p></div>
<div><p>ΘΔ ⸱ 🏳️‍⚧️</p></div>
<div><p>🏳️‍⚧️</p></div>
</footer>
</body>
</html>
+5 -1
View File
@@ -1,5 +1,9 @@
{{ define "main" }}
{{ $sections := split .Content "<h2" }}
{{- $content := .Content -}}
{{- $content = replaceRE `<div class="footnotes" role="doc-endnotes">` "" $content -}}
{{- $content = replaceRE `</div>\s*$` "" $content -}}
{{- $tmp := $content | safeHTML -}}
{{ $sections := split $tmp "<h2" }}
{{ range after 1 $sections }}
<section>
{{ print "<h2" . | safeHTML }}
@@ -1,10 +1,7 @@
{{ define "main" }}
<section>
{{ $category := .Get 0 }}
<dl>
{{ range .Pages }}
{{ range index .Site.Taxonomies.categories $category }}
<time>{{ time.Format "2006-01-02" .Date }}</time>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
</dl>
</section>
{{ end }}