Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexHandler ¶
func IndexHandler(mq MetaDataQuerier, tpl *template.Template) http.HandlerFunc
func PostHandler ¶
func PostHandler(sl SlugReader, tpl *template.Template) http.HandlerFunc
Types ¶
type FileReader ¶
type FileReader struct {
// Dir is the directory where the markdown files are stored
Dir string
}
func (FileReader) Query ¶
func (fr FileReader) Query() ([]PostMetaData, error)
type IndexData ¶
type IndexData struct {
Posts []PostMetaData
}
type MetaDataQuerier ¶
type MetaDataQuerier interface {
Query() ([]PostMetaData, error)
}
type PostMetaData ¶
type SlugReader ¶
Click to show internal directories.
Click to hide internal directories.