diff options
| author | uint <abhinav.prsai@gmail.com> | 2025-12-19 19:48:21 +0000 |
|---|---|---|
| committer | uint <abhinav.prsai@gmail.com> | 2025-12-19 19:48:21 +0000 |
| commit | a8437f43fa7c1e549e78594a449968e5c9934cc2 (patch) | |
| tree | f13b445ff964d06d8cd6917fdbe3a743fa271862 | |
| parent | 7419b03fde535d4ca4c6c78687500c15e8d1447e (diff) | |
add footer parsing
| -rw-r--r-- | example/template.html | 1 | ||||
| -rw-r--r-- | kew.go | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/example/template.html b/example/template.html index d28721e..7adfb0e 100644 --- a/example/template.html +++ b/example/template.html @@ -24,6 +24,5 @@ <footer> <p>{{FOOTER}}</p> </footer> - </body> </html>
\ No newline at end of file @@ -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) |
