@mdwrk/page-template-demo-content-pack
v0.1.2
Published
Example MdWrk content pack demonstrating page-template presets as authored starter content.
Maintainers
Readme
Page Template Demo Content Pack
Example content pack that demonstrates how downstream apps can consume @mdwrk/lander-page-template-presets and @mdwrk/lander-page-templates.
import {
getPageTemplateDemoHomeNavigation,
pageTemplateDemoContentPack,
} from "@mdwrk/page-template-demo-content-pack";
for (const page of pageTemplateDemoContentPack.pages) {
console.log(page.slug, page.title);
}
console.log(getPageTemplateDemoHomeNavigation().related);The package builds a product-site preset with authored content overrides, resolves the preset entry page from the preset's named page manifest, compiles the graph to PageSpec objects, and exposes helper functions for page lookup, home navigation, and home link slots.
