Documentation ¶
Index ¶
- type Engine
- func (e *Engine) GenerateFeed()
- func (e *Engine) GenerateJSONIndex(outFilePath string)
- func (e *Engine) GenerateSitemap(outFilePath string)
- func (e *Engine) RenderEngineGeneratedFiles(fileOutPath string, templ *template.Template)
- func (e *Engine) RenderPage(fileOutPath string, pagePath template.URL, ...)
- func (e *Engine) RenderTags(fileOutPath string, templ *template.Template)
- func (e *Engine) RenderUserDefinedPages(fileOutPath string, templ *template.Template)
- type JSONIndexTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { // Templates stores the template data of all the pages of the site // Access the data for a particular page by using the relative path to the file as the key Templates map[template.URL]parser.TemplateData // K-V pair storing all templates correspoding to a particular tag in the site TagsMap map[string][]parser.TemplateData // Stores data parsed from layout/config.yml LayoutConfig parser.LayoutConfig // Posts contains the template data of files in the posts directory Posts []parser.TemplateData // Stores the index generated for search functionality JSONIndex map[template.URL]JSONIndexTemplate // Common logger for all engine functions ErrorLogger *log.Logger }
func (*Engine) GenerateFeed ¶
func (e *Engine) GenerateFeed()
func (*Engine) GenerateJSONIndex ¶
func (*Engine) GenerateSitemap ¶
func (*Engine) RenderEngineGeneratedFiles ¶
func (*Engine) RenderPage ¶
func (e *Engine) RenderPage(fileOutPath string, pagePath template.URL, pageTemplateData parser.TemplateData, templ *template.Template, templateStartString string)
fileOutPath for main.go should be refering to helpers.SiteDataPath
func (*Engine) RenderTags ¶
type JSONIndexTemplate ¶
type JSONIndexTemplate struct { CompleteURL template.URL FilenameWithoutExtension string Frontmatter parser.Frontmatter Tags []string }
This structure is solely used for storing the JSON index
Click to show internal directories.
Click to hide internal directories.