diff --git a/views/index.templ b/views/index.templ index 771a095..b356130 100644 --- a/views/index.templ +++ b/views/index.templ @@ -10,17 +10,18 @@ templ Index(d data.Page) { - - - - - + + - - - + + + Juan Wu | Portfolio @@ -59,7 +60,7 @@ templ Index(d data.Page) { @@ -130,7 +131,7 @@ templ Index(d data.Page) {

Welcome to - + Project Backyard

diff --git a/views/version.go b/views/version.go new file mode 100644 index 0000000..6d4e82d --- /dev/null +++ b/views/version.go @@ -0,0 +1,10 @@ +package views + +import ( + "fmt" + "time" +) + +// AssetVersion is a timestamp generated at app start for cache busting. +// Used in templates to append ?v= to URLs. +var AssetVerion = fmt.Sprintf("%d", time.Now().Unix())