blog_config.ts view source
(blogs: unknown[]): asserts blogs is BlogConfig[] import {validate_blog_configs} from '@fuzdev/fuz_blog/blog_config.js'; Validates the blogs registry, called by load_blogs_module so gro gen and the
post tasks check it before touching any post file: each config is an object with
only BlogConfig keys and a function or omitted scaffold, each
dirname is a well-formed and unique string, each feed is a strict BlogFeedMetadata
(so a leftover atom, now derived, fails), and each home_page_url has no query
or fragment and a pathname (trailing slash ignored) ending with /<dirname>,
optionally after a deploy base path (e.g. https://user.github.io/repo/blog).
Post urls and the feed URL derive from home_page_url while the posts are
routes under src/routes/<dirname>, so a mismatch would publish broken links.
blogs
the registry's blogs export, unvalidated
type unknown[]
throws
Error - naming the first invalid blog