From 9f4971c92628052b8c51342b83b9aef966a4c318 Mon Sep 17 00:00:00 2001 From: t Date: Mon, 13 Jul 2026 11:38:42 -0600 Subject: Plan fenced-code highlighting and add path template helpers --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 79405e6..afcc659 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,9 @@ have no Markdown title, modification time, or sections. | Function | Result | | --- | --- | | `rel from target` | Makes a root-relative site target relative to the directory containing `from`. HTTP(S), `mailto:`, and fragment targets pass through. A trailing `/` is preserved, so `rel "about/index.html" "/"` returns `../`. | +| `splitPath value` | Splits a slash-separated path into components. | +| `joinPath parts` | Joins path components with `/`. | +| `dirPath value` | Removes the final path component without leaving a trailing `/`. | | `sortPages pages keys...` | Returns a copy. `"title"` sorts ascending case-insensitively. Date keys sort newest first, using the first valid value for each page; `"mod_time"` selects `.ModTime` and other keys select frontmatter values. | | `filterPages pages key value` | Keeps pages whose value stringifies equally. `"title"` and `"output"` select `.Title` and `.OutputPath`; other keys select `.Meta[key]`. | | `slicePages pages start end` | Returns the half-open range `[start:end]`, clamping both bounds instead of failing. | -- cgit v1.3