main.css should be invalidated properly too.
This commit is contained in:
parent
f11f85a1f4
commit
e1dfebf090
@ -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 {
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user