Add build= query to more files for cache busting

This commit is contained in:
Noah Petherbridge 2024-12-25 15:42:11 -08:00
parent ee1a555b6a
commit b9eb9cc06c

View File

@ -18,17 +18,17 @@
<!-- nonshy bulma theme overrides -->
<link rel="stylesheet" href="/static/css/theme.css?build={{.BuildHash}}">
{{- 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 -}}
<!-- User theme hue -->
{{- if and .LoggedIn (.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 -->
{{- 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 -}}
@ -405,7 +405,7 @@
{{template "scripts" .}}
<!-- Alert modal -->
{{template "alert-modal"}}
{{template "alert-modal" .}}
<!-- Likes modal -->
{{template "like-modal"}}