summaryrefslogtreecommitdiff
path: root/site.tmpl
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-07-11 14:06:25 -0600
committert <t@tjp.lol>2026-07-11 19:59:46 -0600
commit6636567f9c4395e830f280e1cd0008a726c04286 (patch)
treeb844e1201de82f54f6b19065bae8e4b783f37642 /site.tmpl
parent48352c770a932bd628cc5eb22ea3b899b041c485 (diff)
Refresh site structure and copy
Simplify navigation and section copy, update feed presentation, and remove the obsolete plain-HTML note.
Diffstat (limited to 'site.tmpl')
-rw-r--r--site.tmpl20
1 files changed, 10 insertions, 10 deletions
diff --git a/site.tmpl b/site.tmpl
index 6c60443..b7c137a 100644
--- a/site.tmpl
+++ b/site.tmpl
@@ -13,14 +13,14 @@
{{end}}
{{define "header"}} <header class="site">
- <h1 class="brand"><a href="{{rel .OutputPath "index.html"}}">~tjp<span class="cur"> $_</span></a></h1>
- {{if eq .OutputPath "index.html"}}<p class="tag">Elder-millennial software engineer in Salt Lake City, Utah. Writing about code, tools, and the small web.</p>
+ <h1 class="brand"><a href="{{rel .OutputPath "/"}}">~tjp<span class="cur"> $_</span></a></h1>
+ {{if eq .OutputPath "index.html"}}<p class="tag">Elder millennial in Salt Lake City, Utah.</p>
{{end}}<nav class="main">
- <a href="{{rel .OutputPath "weblog/index.html"}}"{{if eq .OutputPath "weblog/index.html"}} aria-current="page"{{end}}>weblog</a>
- <!-- <a href="{{rel .OutputPath "notes/index.html"}}"{{if eq .OutputPath "notes/index.html"}} aria-current="page"{{end}}>notes</a> -->
- <a href="{{rel .OutputPath "projects/index.html"}}"{{if eq .OutputPath "projects/index.html"}} aria-current="page"{{end}}>projects</a>
- <a href="{{rel .OutputPath "about/index.html"}}"{{if eq .OutputPath "about/index.html"}} aria-current="page"{{end}}>about</a>
- <a href="{{rel .OutputPath "feed.xml"}}">feed</a>
+ <a href="{{rel .OutputPath "/about/"}}"{{if eq .OutputPath "about/index.html"}} aria-current="page"{{end}}>about</a>
+ <a href="{{rel .OutputPath "/weblog/"}}"{{if eq .OutputPath "weblog/index.html"}} aria-current="page"{{end}}>weblog</a>
+ <a href="{{rel .OutputPath "/notes/"}}"{{if eq .OutputPath "notes/index.html"}} aria-current="page"{{end}}>notes</a>
+ <a href="{{rel .OutputPath "/projects/"}}"{{if eq .OutputPath "projects/index.html"}} aria-current="page"{{end}}>projects</a>
+ <a href="{{rel .OutputPath "/feed.xml"}}">feed</a>
</nav>
</header>
{{end}}
@@ -60,8 +60,8 @@
<h1>{{.Title}}</h1>
</div>
- {{with index .Sections 0}}<div style="font-size:1.2em">{{.}}</div>{{end}}
- {{joinSections (slice .Sections 1)}}
+ {{with .Sections}}{{with index . 0}}<div style="font-size:1.2em">{{.}}</div>{{end}}
+ {{joinSections (slice . 1)}}{{end}}
</article>
<nav class="post-nav">
@@ -73,7 +73,7 @@
{{template "footer" .}}{{end}}
-{{define "note"}}{{template "head" .}}{{template "header" .}}
+{{define "notes"}}{{template "head" .}}{{template "header" .}}
<main>
<article class="post">
<div class="post-head">