Documentation ¶
Index ¶
- func Execute(wr io.Writer, name string, fm template.FuncMap, lctx *LayoutContext, ...) error
- func GetTimestamps(name string, withEmbed bool) ([]time.Time, error)
- func SetConfig(cfg *config.Config)
- type AtomContentEntry
- type ContentContext
- type ContentEntry
- type ContentPagination
- type LayoutContext
- type PostContentEntry
- type ProjectContentEntry
- type ProjectContentLatestRelease
- type ProjectContentLatestReleaseFile
- type SeriesContentEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(wr io.Writer, name string, fm template.FuncMap, lctx *LayoutContext, cctx *ContentContext) error
Types ¶
type AtomContentEntry ¶
type ContentContext ¶
type ContentContext struct { Title string Description string URL string Entry *ContentEntry Entries []*ContentEntry Atom *AtomContentEntry Series *SeriesContentEntry Pagination *ContentPagination Extra map[string]interface{} }
type ContentEntry ¶
type ContentEntry struct { File string URL string Title string Body string Post *PostContentEntry Project *ProjectContentEntry Extra map[string]interface{} }
type ContentPagination ¶
type LayoutContext ¶
type LayoutContext struct {
WithSidebar bool
}
type PostContentEntry ¶
type ProjectContentEntry ¶
type ProjectContentLatestRelease ¶
type ProjectContentLatestRelease struct { Name string Tag string Body string URL string Files []*ProjectContentLatestReleaseFile }
type SeriesContentEntry ¶
type SeriesContentEntry struct {
Status string
}
Click to show internal directories.
Click to hide internal directories.