Documentation
¶
Index ¶
- func Paginator(list []interface{}, number int, path string, paginatePath string) []*paginator
- func Register(ext string, c creator)
- type Builder
- type Hook
- type Hooks
- func (hooks Hooks) AfterPageParse(page *Page) *Page
- func (hooks Hooks) BeforePageWrite(page *Page) *Page
- func (hooks Hooks) BeforePagesWrite(pages Pages) Pages
- func (hooks Hooks) BeforeSectionsWrite(sections Sections) Sections
- func (hooks Hooks) BeforeTaxonomiesWrite(taxonomies Taxonomies) Taxonomies
- func (hooks Hooks) BeforeTemplateWrite(vars map[string]interface{}) map[string]interface{}
- type Meta
- func (m Meta) Done()
- func (m Meta) Get(k string) interface{}
- func (m Meta) GetBool(k string) bool
- func (m Meta) GetInt(k string) int
- func (m Meta) GetSlice(k string) []string
- func (m Meta) GetString(k string) string
- func (m Meta) GetStringMap(k string) map[string]interface{}
- func (m Meta) Set(k, v string)
- 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 ¶
Types ¶
type Hooks ¶
type Hooks []Hook
func (Hooks) AfterPageParse ¶
func (Hooks) BeforePageWrite ¶
func (Hooks) BeforePagesWrite ¶
func (Hooks) BeforeSectionsWrite ¶
func (Hooks) BeforeTaxonomiesWrite ¶
func (hooks Hooks) BeforeTaxonomiesWrite(taxonomies Taxonomies) Taxonomies
func (Hooks) BeforeTemplateWrite ¶
type Page ¶
type Page struct {
File string
Meta Meta
Type string
Lang string
Date time.Time
Modified time.Time
Path string
Permalink string
Aliases []string
Assets []string
Title string
Summary string
Content string
Prev *Page
Next *Page
PrevInType *Page
NextInType *Page
Section *Section
}
func (*Page) HasNextInType ¶
func (*Page) HasPrevInType ¶
type Pages ¶
type Pages []*Page
func (Pages) GroupBy ¶
func (pages Pages) GroupBy(key string) TaxonomyTerms
type Section ¶
type Section struct {
// slug:
// weight:
// aliases:
// transparent:
// filter:
// orderby:
// paginate:
// paginate_path: {name}{number}{extension}
// path:
// template:
// page_path:
// page_template:
// feed_path:
// feed_template:
File string
Meta Meta
Path string
Permalink string
Slug string
Title string
Content string
Pages Pages
HiddenPages Pages
SectionPages Pages
Assets []string
Parent *Section
Children Sections
Lang string
}
type Taxonomies ¶
type Taxonomies []*Taxonomy
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
Previous *TaxonomyTerm
Next *TaxonomyTerm
Taxonomy *Taxonomy
}
func (*TaxonomyTerm) FullName ¶
func (term *TaxonomyTerm) FullName() string
func (*TaxonomyTerm) Paginator ¶
func (term *TaxonomyTerm) Paginator() []*paginator
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.