Compare commits
No commits in common. "715ac03c3b68e86c8f75ca1c72a9324024c7da0e" and "6c3310b83de0a0ecd070640c0f22c679c71f0c2d" have entirely different histories.
715ac03c3b
...
6c3310b83d
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -23,7 +23,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
const VERSION = "v3"
|
||||
const VERSION = "v2"
|
||||
|
||||
var (
|
||||
logger *slog.Logger
|
||||
|
|
@ -264,7 +264,7 @@ func getPage(layout, page string) (tmpl *template.Template, err error) { // {{{
|
|||
if flagDev {
|
||||
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(os.DirFS("."), filenames...)
|
||||
} else {
|
||||
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(viewFS, filenames...)
|
||||
tmpl, err = template.New("main.gotmpl").ParseFS(viewFS, filenames...)
|
||||
}
|
||||
if err != nil {
|
||||
err = we.Wrap(err).Log()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue