tangled
alpha
login
or
join now
stevedylan.dev
/
sequoia
A CLI for publishing standard.site documents to ATProto
sequoia.pub
standard
site
lexicon
cli
publishing
27
fork
atom
overview
issues
pulls
pipelines
chore: updated comments
stevedylan.dev
5 days ago
9241069b
18647185
+2
-3
1 changed file
expand all
collapse all
unified
split
packages
cli
src
commands
inject.ts
+2
-3
packages/cli/src/commands/inject.ts
···
7
7
8
8
export const injectCommand = command({
9
9
name: "inject",
10
10
-
description:
11
11
-
"Inject site.standard.document link tags into built HTML files",
10
10
+
description: "Inject site.standard.document link tags into built HTML files",
12
11
args: {
13
12
outputDir: option({
14
13
long: "output",
···
53
52
slugToAtUri.set(postState.slug, postState.atUri);
54
53
55
54
// Also add the last segment for simpler matching
56
56
-
// e.g., "40th-puzzle-box/what-a-gift" -> also map "what-a-gift"
55
55
+
// e.g., "other/my-other-post" -> also map "my-other-post"
57
56
const lastSegment = postState.slug.split("/").pop();
58
57
if (lastSegment && lastSegment !== postState.slug) {
59
58
slugToAtUri.set(lastSegment, postState.atUri);