A CLI for publishing standard.site documents to ATProto sequoia.pub
standard site lexicon cli publishing
59
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add pathTemplate config option for custom URL paths #3

open opened by stevedylan.dev targeting main from feat/slug-templating

Summary#

  • Adds a pathTemplate config field that supports token-based URL path construction (e.g., /blog/{year}/{month}/{slug}), overriding the default pathPrefix/slug behavior
  • Centralizes path resolution into a single resolvePostPath() helper used across publish, sync, Bluesky posting, and document creation
  • Preserves pathTemplate through config generation and the sequoia update flow
  • Documents the feature with available tokens ({slug}, {year}, {month}, {day}, {title}, and arbitrary frontmatter fields)

Test plan#

  • Verify sequoia publish --dry-run --verbose shows correct URLs with pathTemplate set
  • Verify sequoia update preserves pathTemplate in saved config
  • Verify default behavior unchanged when pathTemplate is 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
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:ia2zdnhjaokf5lazhxrmj6eu/sh.tangled.repo.pull/3mepbv5k4po22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
stevedylan.dev submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments