From 2ab0e23eca3c5cac82d948e506b3f1cb81bedd18 Mon Sep 17 00:00:00 2001 From: t Date: Sat, 11 Jul 2026 12:08:14 -0600 Subject: Migrate site pages to Weft templates and Markdown --- site.tmpl | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 site.tmpl (limited to 'site.tmpl') diff --git a/site.tmpl b/site.tmpl new file mode 100644 index 0000000..6c60443 --- /dev/null +++ b/site.tmpl @@ -0,0 +1,90 @@ +{{define "head"}} + + + + +{{if eq .OutputPath "about/index.html"}}About & colophon{{else}}{{.Title}}{{end}} — tjp.lol +{{with index .Meta "description"}} +{{end}} +{{if or (eq .OutputPath "weblog/index.html") (index .Meta "post_date")}} +{{end}} + +
+{{end}} + +{{define "header"}}
+

~tjp $_

+ {{if eq .OutputPath "index.html"}}

Elder-millennial software engineer in Salt Lake City, Utah. Writing about code, tools, and the small web.

+ {{end}} +
+{{end}} + +{{define "footer"}} + +
+ + +{{end}} + +{{define "page"}}{{template "head" .}}{{template "header" .}} +
+
+
+

{{.Title}}

+
+
+ {{joinSections .Sections}} +
+
+
+ +{{template "footer" .}}{{end}} + +{{define "weblog"}}{{template "head" .}}{{template "header" .}} +
+
+
+

← weblog  / 

+

{{.Title}}

+
+ + {{with index .Sections 0}}
{{.}}
{{end}} + {{joinSections (slice .Sections 1)}} +
+ + +
+ +{{template "footer" .}}{{end}} + +{{define "note"}}{{template "head" .}}{{template "header" .}} +
+
+
+

← notes

+

{{.Title}}

+
+ +
+ {{joinSections .Sections}} +
+
+
+ +{{template "footer" .}}{{end}} -- cgit v1.3