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

@@ -4,5 +4,6 @@
"activityBar.background": "#0C188E",
"titleBar.activeBackground": "#1121C7",
"titleBar.activeForeground": "#F9F9FE"
}
},
"liveServer.settings.root": "/public"
}

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)

View File

@@ -28,7 +28,7 @@ Experimenting with Go. Seems pretty cool so far! </p>
</p>
</main>
<footer>
<p>&copy; 2025 Keith Solomon</p>
</footer>

View File

@@ -28,7 +28,7 @@ This is your first static site built with Go! </p>
</p>
</main>
<footer>
<p>&copy; 2025 Keith Solomon</p>
</footer>