fix: prioritise theme files

This commit is contained in:
frosty 2026-04-02 09:55:12 +03:00
parent b9f775fc2d
commit 08c1aa8abe
4 changed files with 8 additions and 8 deletions

View file

@ -8,8 +8,8 @@
OmniSearch
</title>
<link rel="stylesheet" href="static/main.css">
{{if theme == "light"}}<link rel="stylesheet" href="static/theme-light.css">{{endif}}
{{if theme == "dark"}}<link rel="stylesheet" href="static/theme-dark.css">{{endif}}
{{if theme == "light"}}<link rel="preload" href="static/theme-light.css" as="style">{{endif}}
{{if theme == "dark"}}<link rel="preload" href="static/theme-dark.css" as="style">{{endif}}
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="search"
type="application/opensearchdescription+xml"

View file

@ -9,8 +9,8 @@
</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="static/main.css">
{{if theme == "light"}}<link rel="stylesheet" href="static/theme-light.css">{{endif}}
{{if theme == "dark"}}<link rel="stylesheet" href="static/theme-dark.css">{{endif}}
{{if theme == "light"}}<link rel="preload" href="static/theme-light.css" as="style">{{endif}}
{{if theme == "dark"}}<link rel="preload" href="static/theme-dark.css" as="style">{{endif}}
</head>
<body class="images-view">

View file

@ -8,8 +8,8 @@
OmniSearch - {{query}}
</title>
<link rel="stylesheet" href="static/main.css">
{{if theme == "light"}}<link rel="stylesheet" href="static/theme-light.css">{{endif}}
{{if theme == "dark"}}<link rel="stylesheet" href="static/theme-dark.css">{{endif}}
{{if theme == "light"}}<link rel="preload" href="static/theme-light.css" as="style">{{endif}}
{{if theme == "dark"}}<link rel="preload" href="static/theme-dark.css" as="style">{{endif}}
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="search"
type="application/opensearchdescription+xml"

View file

@ -8,8 +8,8 @@
OmniSearch - {{l("settings_title")}}
</title>
<link rel="stylesheet" href="static/main.css">
{{if theme == "light"}}<link rel="stylesheet" href="static/theme-light.css">{{endif}}
{{if theme == "dark"}}<link rel="stylesheet" href="static/theme-dark.css">{{endif}}
{{if theme == "light"}}<link rel="preload" href="static/theme-light.css" as="style">{{endif}}
{{if theme == "dark"}}<link rel="preload" href="static/theme-dark.css" as="style">{{endif}}
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="search"
type="application/opensearchdescription+xml"