Documentation ¶
Index ¶
- func EstimateReadingTime(text string) string
- func GetAuthorById(authors []models.Author, id string) (models.Author, error)
- func GetNextPost() models.Post
- func GetPostById(posts []models.Post, id string) (models.Post, error)
- func GetPreviousPost() models.Post
- func GetTagById(tags []models.Tag, id string) (models.Tag, error)
- func Unescape(text string) template.HTML
- type Template
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateReadingTime ¶
func GetNextPost ¶
func GetPreviousPost ¶
Types ¶
type Template ¶
type Template struct { Name string Input string Output string Partials []string Data []TemplateData }
func NewFromMapping ¶
func NewFromMapping(mapping *config.Mapping, data ...TemplateData) *Template
type TemplateData ¶
Click to show internal directories.
Click to hide internal directories.