summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruint <abhinav.prsai@gmail.com>2025-12-19 19:48:21 +0000
committeruint <abhinav.prsai@gmail.com>2025-12-19 19:48:21 +0000
commita8437f43fa7c1e549e78594a449968e5c9934cc2 (patch)
treef13b445ff964d06d8cd6917fdbe3a743fa271862
parent7419b03fde535d4ca4c6c78687500c15e8d1447e (diff)
add footer parsing
-rw-r--r--example/template.html1
-rw-r--r--kew.go1
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
diff --git a/kew.go b/kew.go
index f330170..fb42520 100644
--- a/kew.go
+++ b/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)