Fix the order of the stylesheets.
This commit is contained in:
parent
757bc9874f
commit
fb990c182c
|
@ -112,7 +112,13 @@ func FootHeaders(w http.ResponseWriter, header *c.Header) {
|
|||
}
|
||||
|
||||
func renderTemplate3(tmplName string, hookName string, w http.ResponseWriter, r *http.Request, h *c.Header, pi interface{}) error {
|
||||
s := h.Stylesheets
|
||||
h.Stylesheets = nil
|
||||
c.PrepResources(&h.CurrentUser, h, h.Theme)
|
||||
for _, ss := range s {
|
||||
h.Stylesheets = append(h.Stylesheets,ss)
|
||||
}
|
||||
|
||||
if h.CurrentUser.Loggedin {
|
||||
h.MetaDesc = ""
|
||||
h.OGDesc = ""
|
||||
|
@ -135,4 +141,4 @@ func renderTemplate3(tmplName string, hookName string, w http.ResponseWriter, r
|
|||
}
|
||||
|
||||
// TODO: Rename renderTemplate to RenderTemplate instead of using this hack to avoid breaking things
|
||||
var RenderTemplate = renderTemplate3
|
||||
var RenderTemplate = renderTemplate3
|
Loading…
Reference in New Issue