Documentation
¶
Index ¶
Constants ¶
View Source
const ( ST_POST = iota ST_SERIES )
View Source
const IsoDateFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { Date time.Time ContentPath string Metadata PostMetadata Name string Series *Series Title string }
A Post is a dated page.
func (*Post) RelativeURL ¶
func (*Post) TitleWithSeries ¶
type PostIndex ¶
func NewPostIndex ¶
Loads posts from a directory into a PostIndex.
func (*PostIndex) GetBaseSeries ¶
Returns the base (unnamed) series. For now, that's all the random-access we need.
func (*PostIndex) GetPriorPosts ¶
Returns all posts in a series, newest first, but excluding the newest post if it's the newest one in all series.
type PostMetadata ¶
type PostMetadata struct { Tags []string `json:"tags"` Deck string `json:"deck"` // the "deck" or "drop line" of the post }
Extra metadata about a post.
type Series ¶
type Series struct { SeriesMetadata Name string Posts []*Post }
type SeriesAuthor ¶
type SeriesMetadata ¶
type SeriesMetadata struct { Title string `json:"title"` // Fields required for RSS but otherwise optional. // Usually these will only be set for the base (unnamed) series. Description string `json:"description"` Author SeriesAuthor `json:"author"` Created time.Time `json:"created,string"` }
Click to show internal directories.
Click to hide internal directories.