From 317264b45bd5731c7c92f648b6b7ea5a81348380 Mon Sep 17 00:00:00 2001 From: Spencer Brower <6729162+sbrow@users.noreply.github.com> Date: Sun, 30 Aug 2026 13:31:41 -0400 Subject: [PATCH] feat: Added `rel_url` pipe for subsites. --- ROADMAP.md | 1 + TODOS.md | 3 + defaults/layouts/home.html | 2 +- defaults/layouts/partials/nav.html | 4 +- defaults/layouts/partials/styles.html | 2 +- defaults/layouts/section_index.html | 2 +- mustache/TODOS.md | 1 + mustache/pipes.odin | 97 +++++++++++++++++++++------ site.odin | 49 ++++++++++++++ site/thor.json | 3 +- 10 files changed, 139 insertions(+), 25 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index c165e2a..c6d070a 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -87,6 +87,7 @@ - [ ] don't use bullshit "sub-tokens", add filters and pipes as proper tokens. - [ ] Create a Location struct that somewhat matches Odin's [Source_Code_Location](https://pkg.odin-lang.org/base/runtime/#Source_Code_Location)? - Note that odin's version doesn't contain the stack trace. +- [ ] Link checker / linter that warns if links don't resolve. ("please use {{whatever | rel_url }}"). ### Memory Management diff --git a/TODOS.md b/TODOS.md index fe2ccd5..bb8be87 100644 --- a/TODOS.md +++ b/TODOS.md @@ -43,6 +43,9 @@ Remember to polish existing features before moving on to new ones. - do we want to do this or just use DIAGNOSTIC_TESTS.md as the tests? - [ ] also update to use file logger so they don't clog up the output - [ ] narrow highlight in diagnostic to relevent part of line. +- [ ] page.url and page.permalink are confusing names. Switch to url + page_url + - There is confusion over how to do this and whethor or not `| rel_url` should be needed to render these. + Requires **careful thought**. ## Documentation diff --git a/defaults/layouts/home.html b/defaults/layouts/home.html index 56961ce..5fb7b70 100644 --- a/defaults/layouts/home.html +++ b/defaults/layouts/home.html @@ -5,7 +5,7 @@ {{&content}}