add footer parsing

This commit is contained in:
uint 2025-12-19 19:48:21 +00:00
commit a8437f43fa
2 changed files with 1 additions and 1 deletions

View file

@ -24,6 +24,5 @@
<footer> <footer>
<p>{{FOOTER}}</p> <p>{{FOOTER}}</p>
</footer> </footer>
</body> </body>
</html> </html>

1
kew.go
View file

@ -169,6 +169,7 @@ func main() {
page = strings.Replace(page, "{{TITLE}}", SiteTitle, 1) page = strings.Replace(page, "{{TITLE}}", SiteTitle, 1)
page = strings.Replace(page, "{{NAV}}", navbuf.String(), 1) page = strings.Replace(page, "{{NAV}}", navbuf.String(), 1)
page = strings.Replace(page, "{{CONTENT}}", html, 1) page = strings.Replace(page, "{{CONTENT}}", html, 1)
page = strings.Replace(page, "{{FOOTER}}", FooterText, 1)
outpath = strings.TrimSuffix(outpath, ".md") + ".html" outpath = strings.TrimSuffix(outpath, ".md") + ".html"
return os.WriteFile(outpath, []byte(page), 0644) return os.WriteFile(outpath, []byte(page), 0644)