Summary#
- Adds a pathTemplate config field that supports token-based URL path construction (e.g.,
/blog/{year}/{month}/{slug}), overriding the defaultpathPrefix/slugbehavior - Centralizes path resolution into a single
resolvePostPath()helper used acrosspublish,sync, Bluesky posting, and document creation - Preserves
pathTemplatethrough config generation and thesequoia updateflow - Documents the feature with available tokens (
{slug},{year},{month},{day},{title}, and arbitrary frontmatter fields)
Test plan#
- Verify
sequoia publish --dry-run --verboseshows correct URLs withpathTemplateset - Verify
sequoia updatepreservespathTemplatein saved config - Verify default behavior unchanged when
pathTemplateis not set
Prerelease NPM Package#
This PR can be tested two ways
- Install the prerelease NPM package with
npm i -g sequoia-cli@0.5.0-alpha.0 - Checkout this branch and build locally