Fix embedding of static files
This commit is contained in:
parent
8edd857d22
commit
a9e304ee08
2 changed files with 2 additions and 5 deletions
|
|
@ -26,10 +26,7 @@ func main() {
|
||||||
router.Handle(
|
router.Handle(
|
||||||
"/static/",
|
"/static/",
|
||||||
logger(
|
logger(
|
||||||
http.StripPrefix(
|
http.FileServer(http.FS(conf.Static)),
|
||||||
"/static/",
|
|
||||||
http.FileServer(http.FS(conf.Static)),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ var (
|
||||||
{Path: "icons/eye.svg", Url: "https://raw.githubusercontent.com/twbs/icons/refs/heads/main/icons/eye.svg"},
|
{Path: "icons/eye.svg", Url: "https://raw.githubusercontent.com/twbs/icons/refs/heads/main/icons/eye.svg"},
|
||||||
}
|
}
|
||||||
BaseTemplate string = "base.tmpl.html"
|
BaseTemplate string = "base.tmpl.html"
|
||||||
//go:embed static/*
|
//go:embed static/css/* static/icons/* static/js/*
|
||||||
Static embed.FS
|
Static embed.FS
|
||||||
//go:embed templates/*
|
//go:embed templates/*
|
||||||
Templates embed.FS
|
Templates embed.FS
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue