diff options
author | 2024-12-18 17:47:17 +0800 | |
---|---|---|
committer | 2024-12-18 10:47:17 +0100 | |
commit | f78002f915eeaaf455873106b289c96b8c4afb5d (patch) | |
tree | 03b535df867cd1aa7dccab419de730504fa24415 /web | |
parent | update gruf/go-ffmpreg to v0.6.4 (#3627) (diff) | |
download | gotosocial-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.tmpl | 6 |
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 |