Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine handles template loading and rendering
func (*Engine) RenderIndex ¶
RenderIndex renders an index/list page with pagination
func (*Engine) RenderPost ¶
RenderPost renders a single post page
type IndexData ¶
type IndexData struct {
Posts models.PostList
Site config.SiteMetadata
BlogPath string
Page int
TotalPages int
HasNext bool
HasPrev bool
AllTags []string
}
IndexData holds data for rendering an index page
Click to show internal directories.
Click to hide internal directories.