Documentation ¶
Index ¶
- func NodeAttribute(node *html.Node, attr string) string
- func NodeHtml(node *html.Node) template.HTML
- func NodeText(node *html.Node) string
- type Page
- func (page *Page) Author() string
- func (page *Page) Body() *html.Node
- func (page *Page) Contact() string
- func (page *Page) Description() string
- func (page *Page) GetData() interface{}
- func (page *Page) Load(path string) error
- func (page *Page) Markdown() string
- func (page *Page) Meta(key string) interface{}
- func (page *Page) ModifyDatetime() time.Time
- func (page *Page) PublishedDatetime() time.Time
- func (page *Page) SetData(data interface{}) error
- func (page *Page) Summary(max int) string
- func (page *Page) TagClass(class string) *html.Node
- func (page *Page) TagClassAll(class string) []*html.Node
- func (page *Page) TagID(id string) *html.Node
- func (page *Page) TagIDAll(id string) []*html.Node
- func (page *Page) TagName(name string) *html.Node
- func (page *Page) TagNameAll(name string) []*html.Node
- func (page *Page) Template() string
- func (page *Page) Title() string
- func (page *Page) URI() string
- type PageSort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func NewPageWithData ¶
func (*Page) Description ¶
func (*Page) ModifyDatetime ¶
func (*Page) PublishedDatetime ¶
Click to show internal directories.
Click to hide internal directories.