feature: Update footer copyright year and add live server settings

This commit is contained in:
Keith Solomon
2025-04-19 14:46:08 -05:00
parent 9654e9965c
commit b336148b07
4 changed files with 6 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import (
"os"
"path/filepath"
"strings"
"time"
"github.com/russross/blackfriday/v2"
)
@@ -84,6 +85,7 @@ func generatePages(files []os.FileInfo, contentDir, outputDir string, tpl *templ
"Content": template.HTML(htmlContent),
"Title": strings.Title(strings.TrimSuffix(file.Name(), filepath.Ext(file.Name()))),
"Nav": nav,
"Year": time.Now().Year(),
}
err = tpl.Execute(out, data)