Split hljs into a new file; improved dev vite server system (#91)

This commit is contained in:
Thomas Miceli
2023-09-05 15:22:09 +02:00
committed by GitHub
parent ffafde2b3e
commit d4eed91130
6 changed files with 69 additions and 56 deletions

View File

@ -82,11 +82,14 @@ var fm = template.FuncMap{
return defaultAvatar()
},
"asset": func(jsfile string) string {
"asset": func(file string) string {
if dev {
return "http://localhost:16157/" + jsfile
return "http://localhost:16157/" + file
}
return config.C.ExternalUrl + "/" + manifestEntries[jsfile].File
return config.C.ExternalUrl + "/" + manifestEntries[file].File
},
"dev": func() bool {
return dev
},
"defaultAvatar": defaultAvatar,
"visibilityStr": func(visibility int, lowercase bool) string {