✨feature: Update footer copyright year and add live server settings
This commit is contained in:
2
main.go
2
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user