blog_feed_context.ts

view source

Declarations
#

blog_feed_context
#

blog_feed_context.ts view source

{ get: (error_message?: string | undefined) => { atom: { feed_url: string; }; items: { tags: string[]; title: string; date_published: string; date_modified: string; summary: string; id: string; url: string; pathname: string; blog_post_id: number; slug: string; }[]; ... 6 more ...; author: { ...; }; }; get_maybe: () ... import {blog_feed_context} from '@fuzdev/fuz_blog/blog_feed_context.js';

Provides a blog's generated BlogFeed to its subtree, read by BlogPost and set in the blog's own src/routes/<dirname>/+layout.svelte. Kept apart from blog.ts so the schemas, the registry, and the build helpers don't import fuz_ui and Svelte.

Depends on
#

Imported by
#