summaryrefslogtreecommitdiff
path: root/index.html.tmpl
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-07-11 12:08:14 -0600
committert <t@tjp.lol>2026-07-11 12:10:15 -0600
commit2ab0e23eca3c5cac82d948e506b3f1cb81bedd18 (patch)
tree46dc28dcea6265ece0f4763cdff372f84578e172 /index.html.tmpl
parent9faffbf6bc5083239d69a2daedac273e6d814bc3 (diff)
Migrate site pages to Weft templates and Markdown
Diffstat (limited to 'index.html.tmpl')
-rw-r--r--index.html.tmpl45
1 files changed, 45 insertions, 0 deletions
diff --git a/index.html.tmpl b/index.html.tmpl
new file mode 100644
index 0000000..83a9a4f
--- /dev/null
+++ b/index.html.tmpl
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>tjp.lol</title>
+<meta name="description" content="Personal site of tjp — software engineer in Salt Lake City. Weblog, notes, projects.">
+<link rel="stylesheet" href="style.css">
+<link rel="alternate" type="application/atom+xml" title="tjp.lol" href="feed.xml">
+</head>
+<body>
+<div class="wrap">
+
+{{template "header" .}}
+ <main>
+ <section class="intro">
+ <p>Welcome in. This site is my writing desk: weblog posts moving over from my <span class="mono">gemini://</span> capsule, plus a public cut of the notes I keep in Obsidian and sync across my machines with Syncthing.</p>
+ <p>Plain HTML and CSS. No JavaScript, no tracking &mdash; it reads exactly the same with scripts turned off. That's the point.</p>
+ </section>
+
+ <section>
+ <h2 class="sec">recent posts</h2>
+ {{$posts := sortPages (index .Pages "weblog") "post_date"}}{{with $posts}}<ul class="posts">
+ {{range slicePages . 0 5}}<li><time datetime="{{date (index .Meta "post_date") "2006-01-02"}}">{{date (index .Meta "post_date") "2006-01-02"}}</time><a href="{{rel "index.html" .OutputPath}}">{{.Title}}</a></li>{{end}}
+ </ul>
+ {{end}}<p style="margin-top:.9rem;font-size:.9rem;"><a href="weblog/index.html">all posts &rarr;</a></p>
+ </section>
+
+ <div class="cols">
+ <section>
+ <h2 class="sec">elsewhere</h2>
+ <ul class="links">
+ <li><span class="k">email</span><a href="mailto:t@tjp.lol">t@tjp.lol</a></li>
+ <li><span class="k">code</span><a href="https://github.com/teepark">github.com/teepark</a></li>
+ <li><span class="k">fedi</span><a href="https://tilde.zone/@tjpcc" rel="me">@tjpcc@tilde.zone</a></li>
+ <li><span class="k">gemini</span><a href="about/index.html">gemini://…/~tjp</a></li>
+ </ul>
+ </section>
+ <!-- <section>
+ <h2 class="sec">from the notes</h2>
+ </section> -->
+ </div>
+ </main>
+
+{{template "footer" .}}