Add build= query to more files for cache busting
This commit is contained in:
parent
ee1a555b6a
commit
b9eb9cc06c
|
@ -18,17 +18,17 @@
|
||||||
<!-- nonshy bulma theme overrides -->
|
<!-- nonshy bulma theme overrides -->
|
||||||
<link rel="stylesheet" href="/static/css/theme.css?build={{.BuildHash}}">
|
<link rel="stylesheet" href="/static/css/theme.css?build={{.BuildHash}}">
|
||||||
{{- if or (eq .WebsiteTheme "dark") (ne .WebsiteTheme "light") -}}
|
{{- if or (eq .WebsiteTheme "dark") (ne .WebsiteTheme "light") -}}
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/dark-theme.css" {{if ne .WebsiteTheme "dark"}}media="(prefers-color-scheme: dark)"{{end}}>
|
<link rel="stylesheet" type="text/css" href="/static/css/dark-theme.css?build={{.BuildHash}}" {{if ne .WebsiteTheme "dark"}}media="(prefers-color-scheme: dark)"{{end}}>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- User theme hue -->
|
<!-- User theme hue -->
|
||||||
{{- if and .LoggedIn (.CurrentUser.GetProfileField "website-theme-hue") }}
|
{{- if and .LoggedIn (.CurrentUser.GetProfileField "website-theme-hue") }}
|
||||||
{{- $WebsiteThemeHue := .CurrentUser.GetProfileField "website-theme-hue" }}
|
{{- $WebsiteThemeHue := .CurrentUser.GetProfileField "website-theme-hue" }}
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/theme-{{$WebsiteThemeHue}}.css">
|
<link rel="stylesheet" type="text/css" href="/static/css/theme-{{$WebsiteThemeHue}}.css?build={{.BuildHash}}">
|
||||||
|
|
||||||
<!-- Dark theme mixin -->
|
<!-- Dark theme mixin -->
|
||||||
{{- if or (eq .WebsiteTheme "dark") (ne .WebsiteTheme "light") -}}
|
{{- if or (eq .WebsiteTheme "dark") (ne .WebsiteTheme "light") -}}
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/theme-{{$WebsiteThemeHue}}-dark.css" {{if ne .WebsiteTheme "dark"}}media="(prefers-color-scheme: dark)"{{end}}>
|
<link rel="stylesheet" type="text/css" href="/static/css/theme-{{$WebsiteThemeHue}}-dark.css?build={{.BuildHash}}" {{if ne .WebsiteTheme "dark"}}media="(prefers-color-scheme: dark)"{{end}}>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
@ -405,7 +405,7 @@
|
||||||
{{template "scripts" .}}
|
{{template "scripts" .}}
|
||||||
|
|
||||||
<!-- Alert modal -->
|
<!-- Alert modal -->
|
||||||
{{template "alert-modal"}}
|
{{template "alert-modal" .}}
|
||||||
|
|
||||||
<!-- Likes modal -->
|
<!-- Likes modal -->
|
||||||
{{template "like-modal"}}
|
{{template "like-modal"}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user