Blog for Waku and Astro
Blog for Waku and Astro
@fumapress/blogis the blog of a Fumapress site, replacingfumapress/plugins/blog.blogPlugin({ source: "blog" })renders the posts of one or more source keys.- Import its styles with
@import "@fumapress/blog/css/preset.css";and its frontmatter schemablogPageSchemafrom@fumapress/blog/schema. ui.renderPagereceives typed props forblog.index,blog.tags,blog.tagand the post pages. Compose them withBlogIndexView,BlogTagsView,BlogTagViewandBlogPostView.- Tags, authors and cover images come from the
getTags,getAuthorsandgetImageoptions, falling back to the frontmatter. getBlogPosts(ctx, { lang })lists the posts on custom pages, like a landing page. Without i18n,getBlogPosts(ctx).- The index and tag pages render on demand when their content source is dynamic.
Last updated on