Skip to Content

Blog for Waku and Astro

Blog for Waku and Astro

  • @fumapress/blog is the blog of a Fumapress site, replacing fumapress/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 schema blogPageSchema from @fumapress/blog/schema.
  • ui.renderPage receives typed props for blog.index, blog.tags, blog.tag and the post pages. Compose them with BlogIndexView, BlogTagsView, BlogTagView and BlogPostView.
  • Tags, authors and cover images come from the getTags, getAuthors and getImage options, 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

On this page