Versions in this module Expand all Collapse all v3 v3.0.0 Jul 5, 2024 Changes in this version + type Date int64 + type Frontmatter struct + Authors []string + Collections []string + CustomFields []map[string]string + Date string + Description string + Draft bool + JSFiles []string + Layout string + PreviewImage string + TOC bool + Tags []string + Title string + type LayoutConfig struct + Author string + BaseURL string + CollectionLayouts map[string]string + Copyright string + Navbar []map[string]string + SiteScripts []string + SiteTitle string + Socials map[string]string + ThemeURL string + type Parser struct + CollectionsMap map[template.URL][]TemplateData + CollectionsSubPageLayouts map[template.URL]string + ErrorLogger *log.Logger + Helper *helpers.Helper + LayoutConfig LayoutConfig + LiveReload bool + MdFilesName []string + MdFilesPath []string + RenderDrafts bool + SiteDataPath string + TagsMap map[template.URL][]TemplateData + Templates map[template.URL]TemplateData + func (p *Parser) AddFile(baseDirPath string, dirEntryPath string, frontmatter Frontmatter, ...) + func (p *Parser) DateParse(date string) time.Time + func (p *Parser) ParseConfig(inFilePath string) + func (p *Parser) ParseLayoutFiles() *template.Template + func (p *Parser) ParseMDDir(baseDirPath string, baseDirFS fs.FS) + func (p *Parser) ParseMarkdownContent(filecontent string, path string) (Frontmatter, string, string, bool) + func (p *Parser) ParseRobots(inFilePath string, outFilePath string) + type TemplateData struct + Body template.HTML + CompleteURL template.URL + Date int64 + Frontmatter Frontmatter + LiveReload bool