Documentation ¶
Index ¶
- func FilterExpr(filter string) func(*Page) bool
- func Paginator(list []interface{}, number int, path string, paginatePath string) []*paginator
- func Register(ext string, c creator)
- type Builder
- type Context
- type Format
- type Formats
- type Hook
- type Hooks
- func (hooks Hooks) Page(page *Page) *Page
- func (hooks Hooks) Pages(pages Pages) Pages
- func (hooks Hooks) Section(section *Section) *Section
- func (hooks Hooks) Sections(sections Sections) Sections
- func (hooks Hooks) Taxonomies(taxonomies Taxonomies) Taxonomies
- func (hooks Hooks) TaxonomyTerms(terms TaxonomyTerms) TaxonomyTerms
- type Meta
- type Page
- type Pages
- type Reader
- type Section
- type Sections
- type Taxonomies
- type Taxonomy
- type TaxonomyTerm
- type TaxonomyTerms
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterExpr ¶ added in v0.1.2
Types ¶
type Context ¶ added in v0.1.1
type Context struct {
// contains filtered or unexported fields
}
func (*Context) HiddenPages ¶ added in v0.1.1
func (*Context) SectionPages ¶ added in v0.1.1
func (*Context) Taxonomies ¶ added in v0.1.1
func (ctx *Context) Taxonomies() Taxonomies
type Hook ¶
type Hook interface { Page(*Page) *Page Section(*Section) *Section Pages(Pages) Pages Sections(Sections) Sections Taxonomies(Taxonomies) Taxonomies TaxonomyTerms(TaxonomyTerms) TaxonomyTerms }
type Hooks ¶
type Hooks []Hook
func (Hooks) Taxonomies ¶ added in v0.1.2
func (hooks Hooks) Taxonomies(taxonomies Taxonomies) Taxonomies
func (Hooks) TaxonomyTerms ¶ added in v0.1.2
func (hooks Hooks) TaxonomyTerms(terms TaxonomyTerms) TaxonomyTerms
type Page ¶
type Page struct { File string Meta Meta Lang string Date time.Time Modified time.Time Slug string Path string Permalink string Aliases []string Assets []string Title string Summary string Content string Prev *Page Next *Page PrevInSection *Page NextInSection *Page Formats Formats Section *Section }
type Pages ¶
type Pages []*Page
func (Pages) GroupBy ¶
func (pages Pages) GroupBy(key string) TaxonomyTerms
type Section ¶
type Taxonomies ¶
type Taxonomies []*Taxonomy
func (Taxonomies) OrderBy ¶ added in v0.1.2
func (ts Taxonomies) OrderBy(key string) Taxonomies
type TaxonomyTerm ¶
type TaxonomyTerm struct { // term_path: /{taxonomy}/{slug}/index.html // term_template: // term_filter: // term_orderby: // term_paginate: // term_paginate_path: {name}{number}{extension} // feed_path: // feed_template: Meta Meta Name string Slug string Path string Permalink string List Pages Parent *TaxonomyTerm Children TaxonomyTerms Formats Formats Taxonomy *Taxonomy }
func (*TaxonomyTerm) Paginator ¶
func (term *TaxonomyTerm) Paginator() []*paginator
func (*TaxonomyTerm) RealName ¶ added in v0.1.2
func (term *TaxonomyTerm) RealName() string
type TaxonomyTerms ¶
type TaxonomyTerms []*TaxonomyTerm
func (TaxonomyTerms) Find ¶
func (terms TaxonomyTerms) Find(name string) *TaxonomyTerm
func (TaxonomyTerms) Has ¶
func (terms TaxonomyTerms) Has(name string) bool
func (TaxonomyTerms) OrderBy ¶
func (terms TaxonomyTerms) OrderBy(key string) TaxonomyTerms
Source Files ¶
Click to show internal directories.
Click to hide internal directories.