Compare commits

..

No commits in common. "715ac03c3b68e86c8f75ca1c72a9324024c7da0e" and "6c3310b83de0a0ecd070640c0f22c679c71f0c2d" have entirely different histories.

View File

@ -23,7 +23,7 @@ import (
"time" "time"
) )
const VERSION = "v3" const VERSION = "v2"
var ( var (
logger *slog.Logger logger *slog.Logger
@ -264,7 +264,7 @@ func getPage(layout, page string) (tmpl *template.Template, err error) { // {{{
if flagDev { if flagDev {
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(os.DirFS("."), filenames...) tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(os.DirFS("."), filenames...)
} else { } else {
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(viewFS, filenames...) tmpl, err = template.New("main.gotmpl").ParseFS(viewFS, filenames...)
} }
if err != nil { if err != nil {
err = we.Wrap(err).Log() err = we.Wrap(err).Log()