Compare commits
2 commits
6c3310b83d
...
715ac03c3b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
715ac03c3b | ||
|
|
1b888a3513 |
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -23,7 +23,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
const VERSION = "v2"
|
||||
const VERSION = "v3"
|
||||
|
||||
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").ParseFS(viewFS, filenames...)
|
||||
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(viewFS, filenames...)
|
||||
}
|
||||
if err != nil {
|
||||
err = we.Wrap(err).Log()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue