Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Post ¶
Post is a representation of a post
func (Post) SanitizeTitle ¶
SanitiseTitle returns the title of the post with spaces replaced by dashes for pleasant URLs
type PostRenderer ¶
type PostRenderer struct {
// contains filtered or unexported fields
}
func NewPostRenderer ¶
func NewPostRenderer() (*PostRenderer, error)
func (*PostRenderer) RenderIndex ¶
func (r *PostRenderer) RenderIndex(w io.Writer, posts []Post) error
Click to show internal directories.
Click to hide internal directories.