page

package
v0.5.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(origin string, path, raw string, created, updated int64, formats feature.PageFormatProvider, enjin context.Context) (p feature.Page, err error)

func NewMatterFromPage

func NewMatterFromPage(p feature.Page) (pm *matter.PageMatter, err error)

func NewPageFromStub

func NewPageFromStub(ps *feature.PageStub, formats feature.PageFormatProvider) (p feature.Page, err error)

Types

type CPage

type CPage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewFromPageMatter

func NewFromPageMatter(pm *matter.PageMatter, formats feature.PageFormatProvider, enjin context.Context) (p *CPage, err error)

func (*CPage) Archetype

func (p *CPage) Archetype() (archetype string)

func (*CPage) Content

func (p *CPage) Content() (content string)

func (*CPage) Context

func (p *CPage) Context() (ctx context.Context)

func (*CPage) Copy

func (p *CPage) Copy() (copy feature.Page)

func (*CPage) CreatedAt

func (p *CPage) CreatedAt() (at time.Time)

func (*CPage) DeletedAt

func (p *CPage) DeletedAt() (at sql.NullTime)

func (*CPage) Description

func (p *CPage) Description() (description string)

func (*CPage) Format

func (p *CPage) Format() (pageFormat string)

func (*CPage) FrontMatter

func (p *CPage) FrontMatter() (frontMatter string)

func (*CPage) FrontMatterType

func (p *CPage) FrontMatterType() (frontMatterType matter.FrontMatterType)

func (*CPage) HasTranslation

func (p *CPage) HasTranslation() (ok bool)

func (*CPage) IsRedirection

func (p *CPage) IsRedirection(path string) (ok bool)

func (*CPage) IsTranslation

func (p *CPage) IsTranslation(path string) (ok bool)

func (*CPage) Language

func (p *CPage) Language() (code string)

func (*CPage) LanguageTag

func (p *CPage) LanguageTag() (tag language.Tag)

func (*CPage) Layout

func (p *CPage) Layout() (layoutName string)

func (*CPage) Match

func (p *CPage) Match(path string) (found string, ok bool)

func (*CPage) MatchPrefix

func (p *CPage) MatchPrefix(prefix string) (found string, ok bool)

func (*CPage) MatchQL

func (p *CPage) MatchQL(query string) (ok bool, err error)

func (*CPage) PageMatter

func (p *CPage) PageMatter() (pageMatter *matter.PageMatter)

func (*CPage) Path

func (p *CPage) Path() (path string)
func (p *CPage) Permalink() (id uuid.UUID)

func (*CPage) PermalinkSha

func (p *CPage) PermalinkSha() (shasum string)

func (*CPage) Redirections

func (p *CPage) Redirections() (redirects []string)

func (*CPage) Section

func (p *CPage) Section() (section string)

func (*CPage) SetArchetype

func (p *CPage) SetArchetype(archetype string)

func (*CPage) SetContent

func (p *CPage) SetContent(content string)

func (*CPage) SetCreatedAt

func (p *CPage) SetCreatedAt(at time.Time)

func (*CPage) SetDeletedAt

func (p *CPage) SetDeletedAt(at sql.NullTime)

func (*CPage) SetDescription

func (p *CPage) SetDescription(description string)

func (*CPage) SetFormat

func (p *CPage) SetFormat(filepath string) (path string)

func (*CPage) SetFrontMatter

func (p *CPage) SetFrontMatter(frontMatter string)

func (*CPage) SetFrontMatterType

func (p *CPage) SetFrontMatterType(frontMatterType matter.FrontMatterType)

func (*CPage) SetLanguage

func (p *CPage) SetLanguage(tag language.Tag)

func (*CPage) SetLayout

func (p *CPage) SetLayout(layoutName string)
func (p *CPage) SetPermalink(value string) (err error)

func (*CPage) SetSlugUrl

func (p *CPage) SetSlugUrl(filepath string)

func (*CPage) SetTitle

func (p *CPage) SetTitle(title string)

func (*CPage) SetTranslates

func (p *CPage) SetTranslates(url string)

func (*CPage) SetType

func (p *CPage) SetType(pageType string)

func (*CPage) SetUpdatedAt

func (p *CPage) SetUpdatedAt(at time.Time)

func (*CPage) Shasum

func (p *CPage) Shasum() (shasum string)

func (*CPage) Slug

func (p *CPage) Slug() (slug string)

func (*CPage) String

func (p *CPage) String() (jsonPage string)

func (*CPage) Title

func (p *CPage) Title() (title string)

func (*CPage) Translates

func (p *CPage) Translates() (url string)

func (*CPage) Type

func (p *CPage) Type() (pageType string)

func (*CPage) UpdatedAt

func (p *CPage) UpdatedAt() (at time.Time)

func (*CPage) Url

func (p *CPage) Url() (url string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL