You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SagaCLI/ProjectTemplate.swift
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -382,23 +382,18 @@ enum ProjectTemplate {
382
382
383
383
## How it works
384
384
385
-
Saga runs a **Reader → Processor → Writer** pipeline. Every `register` step in `main.swift` claims
386
-
a folder of content, parses it into typed items, and hands those items to writers that render HTML:
385
+
Saga runs a **Reader → Processor → Writer** pipeline. Every `register` step in `main.swift` claims a folder of content, parses it into typed items, and hands those items to writers that render HTML:
387
386
388
-
- `content/articles/*.md` is read into `Item<ArticleMetadata>` values, and written to
389
-
`/articles/<slug>/`, plus an index at `/articles/` and a page per tag at `/articles/tag/<tag>/`.
387
+
- `content/articles/*.md` is read into `Item<ArticleMetadata>` values, and written to `/articles/<slug>/`, plus an index at `/articles/` and a page per tag at `/articles/tag/<tag>/`.
390
388
- Every other markdown file is written as a standalone page, so `content/index.md` becomes `/`.
391
389
392
-
Metadata comes from the YAML front matter at the top of each markdown file. Add a field to
393
-
`ArticleMetadata` in `main.swift` to make it available in your templates.
390
+
Metadata comes from the YAML front matter at the top of each markdown file. Add a field to `ArticleMetadata` in `main.swift` to make it available in your templates.
394
391
395
392
Anything in `content/static/` that no step claims is copied to `deploy/` untouched.
0 commit comments