Documentation ¶
Index ¶
- Variables
- func New() processor.Processor
- type BlogEntry
- type Processor
- func (p *Processor) AddPage(folder, pagefile string) (objx.Map, error)
- func (p *Processor) CanRenderPage(pg model.Page) bool
- func (p *Processor) CreateBody(content []byte, pg model.Page) (*processor.Response, error)
- func (p *Processor) GetPageTemplate(name string) string
- func (p *Processor) HTMLTemplateName() string
- func (p *Processor) Name() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed templates/page.md BlogPage string //go:embed templates/index.md BlogIndex string )
Page the page template
Functions ¶
Types ¶
type Processor ¶
type Processor struct { }
Processor the blog processor itself
func (*Processor) AddPage ¶
AddPage adding the new blog page to the list of pages with the actual time. if already there the entry will be overwriten. After that, the _content.yaml will be sorted descending by time (created) and saved.
func (*Processor) CanRenderPage ¶
CanRenderPage all pages of the processor should be rendered
func (*Processor) CreateBody ¶
CreateBody interface method to create a html body from a markdown file
func (*Processor) GetPageTemplate ¶
GetPageTemplate getting the right template for the named page
func (*Processor) HTMLTemplateName ¶
HTMLTemplateName returning the used html template
Click to show internal directories.
Click to hide internal directories.