{ get: (error_message?: string | undefined) => BlogFeed; get_maybe: () => BlogFeed | undefined; set: (value: BlogFeed) => BlogFeed; } import {blog_feed_context} from '@fuzdev/fuz_blog/blog.js'; blog software from scratch with SvelteKit
11 modules ยท 24 declarations
{ get: (error_message?: string | undefined) => BlogFeed; get_maybe: () => BlogFeed | undefined; set: (value: BlogFeed) => BlogFeed; } import {blog_feed_context} from '@fuzdev/fuz_blog/blog.js'; MastodonBlogComments import type {BlogComments} from '@fuzdev/fuz_blog/blog.js'; urltype string
typetype "mastodon"
BlogFeed import type {BlogFeed} from '@fuzdev/fuz_blog/blog.js'; itemstype Array<BlogPostItem>
BlogFeedData import type {BlogFeedData} from '@fuzdev/fuz_blog/blog.js'; idtype string
titletype string
home_page_urltype string
descriptiontype string
icontype string
favicontype string
authortype { name: string; url?: string | undefined; email?: string | undefined; }
atomtype { feed_url: string; }
BlogModule import type {BlogModule} from '@fuzdev/fuz_blog/blog.js'; blogtype BlogFeedData
accepts children
import BlogPost from '@fuzdev/fuz_blog/BlogPost.svelte'; postattrs?HTMLAttributes<HTMLElement>footer?Snippet<[]>separator?Snippet<[]>default_separatorchildrenSnippet<[]>BlogPostData import type {BlogPostData} from '@fuzdev/fuz_blog/blog.js'; The author-defined data for each post.
titletype string
slugtype string
date_publishedtype string
date_modifiedtype string
summarytype string
tags?type Array<string>
comments?type BlogComments
BlogPostHeader.svelte view source
import BlogPostHeader from '@fuzdev/fuz_blog/BlogPostHeader.svelte'; itemBlogPostId import type {BlogPostId} from '@fuzdev/fuz_blog/blog.js'; Flavored<number, 'BlogPostId'>BlogPostItem import type {BlogPostItem} from '@fuzdev/fuz_blog/blog.js'; idBlog post path with blog_post_id.
type string
urlBlog post path with slug.
type string
blog_post_idIncrementing 1-based integer.
type BlogPostId
tagstype Array<string>
BlogPostModule import type {BlogPostModule} from '@fuzdev/fuz_blog/blog.js'; posttype BlogPostData
defaulttype Component<any>
(blog_dir: string): BlogPostId[] import {collect_blog_post_ids} from '@fuzdev/fuz_blog/blog_helpers.js'; Returns an array of all of the sequential blog post ids starting with 1. When it fails to find the next id, the sequence ends.
blog_dirstringBlogPostId[] (data: Feed): string import {create_atom_feed} from '@fuzdev/fuz_blog/feed.js'; datastring Feed import type {Feed} from '@fuzdev/fuz_blog/feed.js'; This is designed to extend JSON Feed 1.1 with namespaced data for other specs like Atom. It's still a work in progress, and I'll add features as I need them, and eventually this will be extracted to a standalone library. https://www.jsonfeed.org/version/1.1/
idtype string
titletype string
home_page_urltype string
descriptiontype string
icontype string
favicontype string
authortype {
name: string;
url?: string;
email?: string;
}
itemstype Array<FeedItem>
atomtype {
feed_url: string;
}
FeedItem import type {FeedItem} from '@fuzdev/fuz_blog/feed.js'; idtype string
titletype string
urltype string
date_publishedtype string
date_modifiedtype string
summarytype string
tags?type Array<string>
FeedItemDate.svelte view source
import FeedItemDate from '@fuzdev/fuz_blog/FeedItemDate.svelte'; item(date: string | number | Date): string import {format_date} from '@fuzdev/fuz_blog/util.js'; datestring | number | Datestring accepts children
import HashLink from '@fuzdev/fuz_blog/HashLink.svelte'; slugstringchildrenSnippet<[]>(blog_dir: string, blog_post_ids: BlogPostId[]): Promise<BlogPostModule[]> import {load_blog_post_modules} from '@fuzdev/fuz_blog/blog_helpers.js'; blog_dirstringblog_post_idsBlogPostId[]Promise<BlogPostModule[]> MastodonBlogComments import type {MastodonBlogComments} from '@fuzdev/fuz_blog/blog.js'; urltype string
typetype 'mastodon'
(blog_post_id: BlogPostId, blog_url: string, post: BlogPostData): BlogPostItem import {resolve_blog_post_item} from '@fuzdev/fuz_blog/blog_helpers.js'; blog_post_idblog_urlstringpostBlogPostItem (blog_dir: string, blog_post_id: BlogPostId): string import {to_blog_post_path} from '@fuzdev/fuz_blog/blog_helpers.js'; blog_dirstringblog_post_idstring (blog_post_ids: BlogPostId[]): BlogPostId import {to_next_blog_post_id} from '@fuzdev/fuz_blog/blog_helpers.js'; blog_post_idsBlogPostId[]BlogPostId (url: string, root: string): string import {to_pathname} from '@fuzdev/fuz_blog/util.js'; urlstringrootstringstring