add footer parsing
This commit is contained in:
parent
7419b03fde
commit
a8437f43fa
2 changed files with 1 additions and 1 deletions
1
kew.go
1
kew.go
|
|
@ -169,6 +169,7 @@ func main() {
|
|||
page = strings.Replace(page, "{{TITLE}}", SiteTitle, 1)
|
||||
page = strings.Replace(page, "{{NAV}}", navbuf.String(), 1)
|
||||
page = strings.Replace(page, "{{CONTENT}}", html, 1)
|
||||
page = strings.Replace(page, "{{FOOTER}}", FooterText, 1)
|
||||
|
||||
outpath = strings.TrimSuffix(outpath, ".md") + ".html"
|
||||
return os.WriteFile(outpath, []byte(page), 0644)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue