update website to include birds
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 +0,0 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<dl>
|
||||
{{ range .Pages }}
|
||||
<time>{{ time.Format "2006-01-02" .Date }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
</dl>
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user