blog-pages.ts#
4 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
4
symbols
2
functions
1
interfaces
1
modules
12
parameters
5
members
2
returns
Reference#
fnappendBlogPages(input: { generatedPages: Array<{ inputPath: string; outputPath: string; html: string }>; listedPages: readonly BlogSourcePage[]; options?: ResolvedBlogOptions; collections?: ResolvedCollectionsOptions; srcDir: string; outDir: string; base: string; render: (page: BlogGeneratedPage) => Promise<string>; errors: string[]; feedNetwork?: BlogFeedNetwork; }): Promise<void>Renders index, tag, and archive pages and appends them to the build.
Renders index, tag, and archive pages and appends them to the build.
Signature
export async function appendBlogPages(input: {
generatedPages: Array<{ inputPath: string; outputPath: string; html: string }>;
listedPages: readonly BlogSourcePage[];
options?: ResolvedBlogOptions;
collections?: ResolvedCollectionsOptions;
srcDir: string;
outDir: string;
base: string;
render: (page: BlogGeneratedPage) => Promise<string>;
errors: string[];
feedNetwork?: BlogFeedNetwork;
}): Promise<void>Parameters
-
input{ generatedPages: Array<{ inputPath: string; outputPath: string; html: string }>; listedPages: readonly BlogSourcePage[]; options?: ResolvedBlogOptions; collections?: ResolvedCollectionsOptions; srcDir: string; outDir: string; base: string; render: (page: BlogGeneratedPage) => Promise<string>; errors: string[]; feedNetwork?: BlogFeedNetwork } -
input.generatedPagesArray<{ inputPath: string; outputPath: string; html: string }> -
input.listedPagesreadonly BlogSourcePage[] -
input.options?ResolvedBlogOptionsoptional
-
input.collections?ResolvedCollectionsOptionsoptional
-
input.srcDirstring -
input.outDirstring -
input.basestring -
input.render(page: BlogGeneratedPage) => Promise<string> -
input.errorsstring[] -
input.feedNetwork?BlogFeedNetworkoptional
Returns
Promise<void>
moduleblog-pagesGenerated blog index, tag, and archive pages.
Generated blog index, tag, and archive pages.
interfaceBlogGeneratedPageSynthetic page passed back to generateHtmlPage.
Synthetic page passed back to generateHtmlPage.
Signature
export interface BlogGeneratedPageMembers
Properties
| Name | Type | Description |
|---|---|---|
content |
string |
|
href |
string |
|
outputPath |
string |
|
title |
string |
|
urlPath |
string |
fntoBlogProcessResult(page: BlogGeneratedPage): { inputPath: string; routePaths: { outputPath: string; urlPath: string; href: string; ogImagePath: string; ogImageUrl: string; }; transformedHtml: string; title: string; frontmatter: Record<string, unknown>; toc: []; }Maps a generated blog page onto the SSG render shape.
Maps a generated blog page onto the SSG render shape.
Signature
export function toBlogProcessResult(page: BlogGeneratedPage): {
inputPath: string;
routePaths: {
outputPath: string;
urlPath: string;
href: string;
ogImagePath: string;
ogImageUrl: string;
};
transformedHtml: string;
title: string;
frontmatter: Record<string, unknown>;
toc: [];
}Parameters
-
pageBlogGeneratedPage
Returns
object
frontmatter
frontmatter: Record<string, unknown>;
inputPath
inputPath: string;
routePaths
routePaths: { outputPath: string; urlPath: string; href: string; ogImagePath: string; ogImageUrl: string };
title
title: string;
toc
toc: [];
transformedHtml
transformedHtml: string;