diff options
| author | t <t@tjp.lol> | 2026-07-13 11:38:42 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-07-31 16:18:12 -0600 |
| commit | 9f4971c92628052b8c51342b83b9aef966a4c318 (patch) | |
| tree | 8d237adecde8ddbc421e09697977205743118ae3 /README.md | |
| parent | 7711dcbfe619b616f2d78acbd524d289066576c1 (diff) | |
Plan fenced-code highlighting and add path template helpers
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. | |
