Documentation
¶
Overview ¶
Package core provides shared types for the site command: Atom XML feed structures used by the feed subcommand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogFrontmatter ¶
type BlogFrontmatter struct {
Title string `yaml:"title"`
Date string `yaml:"date"`
Author string `yaml:"author"`
Topics []string `yaml:"topics"`
ReviewedAndFinalized *bool `yaml:"reviewed_and_finalized"`
}
BlogFrontmatter maps the YAML fields we care about.
type BlogPost ¶
type BlogPost struct {
Filename string
Title string
Date string
Author string
Topics []string
Summary string
}
BlogPost holds parsed metadata from a single blog post.
type FeedReport ¶
FeedReport tracks what happened during feed generation.
type PostStatus ¶
type PostStatus int
PostStatus indicates the outcome of parsing a single blog post.
const ( PostIncluded PostStatus = iota PostSkipped PostWarn )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package rss generates Atom XML feeds from blog post metadata.
|
Package rss generates Atom XML feeds from blog post metadata. |
|
Package scan reads blog post directories, parses frontmatter, and returns sorted post metadata.
|
Package scan reads blog post directories, parses frontmatter, and returns sorted post metadata. |
Click to show internal directories.
Click to hide internal directories.