main.css should be invalidated properly too.

This commit is contained in:
Azareal 2019-03-25 14:01:50 +10:00
parent f11f85a1f4
commit e1dfebf090
2 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,7 @@ func panelUserCheck(w http.ResponseWriter, r *http.Request, user *User) (header
header.StartedAt = time.Now()
}
header.AddSheet(theme.Name + "/main.css")
header.AddSheet(theme.Name + "/panel.css")
if len(theme.Resources) > 0 {
rlist := theme.Resources
@ -221,6 +222,7 @@ func userCheck(w http.ResponseWriter, r *http.Request, user *User) (header *Head
header.StartedAt = time.Now()
}
header.AddSheet(theme.Name + "/main.css")
if len(theme.Resources) > 0 {
rlist := theme.Resources
for _, resource := range rlist {

View File

@ -2,7 +2,6 @@
<html lang="en">
<head>
<title>{{.Title}} | {{.Header.Site.Name}}</title>
<link href="/static/{{.Header.Theme.Name}}/main.css" rel="stylesheet" type="text/css">
{{range .Header.Stylesheets}}
<link href="/static/{{.Name}}{{if .Hash}}?h={{.Hash}}{{end}}" rel="stylesheet" type="text/css">{{end}}
{{range .Header.PreScriptsAsync}}