Documentation ¶
Index ¶
- func New(origin string, path, raw string, created, updated int64, ...) (p feature.Page, err error)
- func NewMatterFromPage(p feature.Page) (pm *matter.PageMatter, err error)
- func NewPageFromStub(ps *feature.PageStub, formats feature.PageFormatProvider, ...) (p feature.Page, err error)
- type CPage
- func (p *CPage) Archetype() (archetype string)
- func (p *CPage) Content() (content string)
- func (p *CPage) Context() (ctx context.Context)
- func (p *CPage) Copy() (copy feature.Page)
- func (p *CPage) CreatedAt() (at time.Time)
- func (p *CPage) DeepCopy() interface{}
- func (p *CPage) DeletedAt() (at sql.NullTime)
- func (p *CPage) Description() (description string)
- func (p *CPage) Format() (pageFormat string)
- func (p *CPage) FrontMatter() (frontMatter string)
- func (p *CPage) FrontMatterType() (frontMatterType matter.FrontMatterType)
- func (p *CPage) HasTranslation() (ok bool)
- func (p *CPage) IsRedirection(path string) (ok bool)
- func (p *CPage) IsTranslation(path string) (ok bool)
- func (p *CPage) Language() (code string)
- func (p *CPage) LanguageTag() (tag language.Tag)
- func (p *CPage) Layout() (layoutName string)
- func (p *CPage) Match(path string) (found string, ok bool)
- func (p *CPage) MatchPrefix(prefix string) (found string, ok bool)
- func (p *CPage) MatchQL(query string) (ok bool, err error)
- func (p *CPage) PageMatter() (pageMatter *matter.PageMatter)
- func (p *CPage) Path() (path string)
- func (p *CPage) Permalink() (id uuid.UUID)
- func (p *CPage) PermalinkSha() (shasum string)
- func (p *CPage) Redirections() (redirects []string)
- func (p *CPage) Section() (section string)
- func (p *CPage) SetArchetype(archetype string)
- func (p *CPage) SetContent(content string)
- func (p *CPage) SetCreatedAt(at time.Time)
- func (p *CPage) SetDeletedAt(at sql.NullTime)
- func (p *CPage) SetDescription(description string)
- func (p *CPage) SetFormat(filepath string) (path string)
- func (p *CPage) SetFrontMatter(frontMatter string)
- func (p *CPage) SetFrontMatterType(frontMatterType matter.FrontMatterType)
- func (p *CPage) SetLanguage(tag language.Tag)
- func (p *CPage) SetLayout(layoutName string)
- func (p *CPage) SetPermalink(value string) (err error)
- func (p *CPage) SetSlugUrl(filepath string)
- func (p *CPage) SetTitle(title string)
- func (p *CPage) SetTranslates(url string)
- func (p *CPage) SetType(pageType string)
- func (p *CPage) SetUpdatedAt(at time.Time)
- func (p *CPage) Shasum() (shasum string)
- func (p *CPage) Slug() (slug string)
- func (p *CPage) String() (jsonPage string)
- func (p *CPage) Title() (title string)
- func (p *CPage) Translates() (url string)
- func (p *CPage) Type() (pageType string)
- func (p *CPage) UpdatedAt() (at time.Time)
- func (p *CPage) Url() (url string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMatterFromPage ¶
func NewMatterFromPage(p feature.Page) (pm *matter.PageMatter, err error)
Types ¶
type CPage ¶
func NewFromPageMatter ¶
func NewFromPageMatter(pm *matter.PageMatter, formats feature.PageFormatProvider, enjin context.Context) (p *CPage, err error)
func (*CPage) Description ¶
func (*CPage) FrontMatter ¶
func (*CPage) FrontMatterType ¶
func (p *CPage) FrontMatterType() (frontMatterType matter.FrontMatterType)
func (*CPage) HasTranslation ¶
func (*CPage) IsRedirection ¶
func (*CPage) IsTranslation ¶
func (*CPage) LanguageTag ¶
func (*CPage) PageMatter ¶
func (p *CPage) PageMatter() (pageMatter *matter.PageMatter)
func (*CPage) PermalinkSha ¶
func (*CPage) Redirections ¶
func (*CPage) SetArchetype ¶
func (*CPage) SetContent ¶
func (*CPage) SetCreatedAt ¶
func (*CPage) SetDeletedAt ¶
func (*CPage) SetDescription ¶
func (*CPage) SetFrontMatter ¶
func (*CPage) SetFrontMatterType ¶
func (p *CPage) SetFrontMatterType(frontMatterType matter.FrontMatterType)
func (*CPage) SetLanguage ¶
func (*CPage) SetPermalink ¶
func (*CPage) SetSlugUrl ¶
func (*CPage) SetTranslates ¶
func (*CPage) SetUpdatedAt ¶
func (*CPage) Translates ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.