summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLibravatar CDN <cardinal@codeword.info>2024-12-18 17:47:17 +0800
committerLibravatar GitHub <noreply@github.com>2024-12-18 10:47:17 +0100
commitf78002f915eeaaf455873106b289c96b8c4afb5d (patch)
tree03b535df867cd1aa7dccab419de730504fa24415 /web
parentupdate gruf/go-ffmpreg to v0.6.4 (#3627) (diff)
downloadgotosocial-f78002f915eeaaf455873106b289c96b8c4afb5d.tar.xz
[bugfix] Load instance-wide custom css in page stylesheets template (#3601)
* [bugfix] Load instance-wide custom css in page stylesheets template * [chore] remove redunt import
Diffstat (limited to 'web')
-rw-r--r--web/template/page_stylesheets.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/template/page_stylesheets.tmpl b/web/template/page_stylesheets.tmpl
index 9234607f8..9ccc65c13 100644
--- a/web/template/page_stylesheets.tmpl
+++ b/web/template/page_stylesheets.tmpl
@@ -32,10 +32,16 @@
{{- range .stylesheets }}
<link rel="preload" href="{{- . -}}" as="style">
{{- end }}
+{{- if .instance.CustomCSS }}
+<link rel="preload" href="/custom.css" as="style">
+{{- end }}
<link rel="stylesheet" href="/assets/dist/_colors.css">
<link rel="stylesheet" href="/assets/dist/base.css">
<link rel="stylesheet" href="/assets/dist/page.css">
{{- range .stylesheets }}
<link rel="stylesheet" href="{{- . -}}">
{{- end }}
+{{- if .instance.CustomCSS }}
+<link rel="stylesheet" href="/custom.css">
+{{- end }}
{{- end }} \ No newline at end of file