add footer parsing
This commit is contained in:
parent
7419b03fde
commit
a8437f43fa
2 changed files with 1 additions and 1 deletions
|
|
@ -24,6 +24,5 @@
|
||||||
<footer>
|
<footer>
|
||||||
<p>{{FOOTER}}</p>
|
<p>{{FOOTER}}</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
1
kew.go
1
kew.go
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue