feat(wip): load themes dynamically from static/themes/*.css
This commit is contained in:
parent
ba6dae676a
commit
3c856f93ed
14 changed files with 176 additions and 65 deletions
|
|
@ -9,8 +9,7 @@
|
|||
</title>
|
||||
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
||||
<link rel="stylesheet" href="static/main.css">
|
||||
{{if theme == "light"}}<link rel="preload" href="static/theme-light.css" as="style"><link rel="stylesheet" href="static/theme-light.css">{{endif}}
|
||||
{{if theme == "dark"}}<link rel="preload" href="static/theme-dark.css" as="style"><link rel="stylesheet" href="static/theme-dark.css">{{endif}}
|
||||
<link rel="stylesheet" href="static/themes/{{theme}}.css">
|
||||
</head>
|
||||
|
||||
<body class="images-view">
|
||||
|
|
|
|||
Loading…
Reference in a new issue