| | |
| | | return [ |
| | | tag, |
| | | defaultProcessedContent({ |
| | | slug: joinSegments("tags", tag, "index") as ServerSlug, |
| | | slug: joinSegments("tags", tag) as ServerSlug, |
| | | frontmatter: { title, tags: [] }, |
| | | }), |
| | | ] |
| | |
| | | for (const [tree, file] of content) { |
| | | const slug = file.data.slug! |
| | | if (slug.startsWith("tags/")) { |
| | | const tag = joinSegments(slug.slice("tags/".length), "index") |
| | | const tag = slug.slice("tags/".length) |
| | | if (tags.has(tag)) { |
| | | tagDescriptions[tag] = [tree, file] |
| | | } |
| | |
| | | } |
| | | |
| | | const content = renderPage(slug, componentData, opts, externalResources) |
| | | |
| | | const fp = (file.data.slug + ".html") as FilePath |
| | | await emit({ |
| | | const fp = await emit({ |
| | | content, |
| | | slug: file.data.slug!, |
| | | ext: ".html", |