Let's keep it simple ... have a folder asserts/{theme}/ containing a stylesheet.css and global.js

This commit is contained in:
Alexandre Aubin 2019-02-21 18:27:28 +01:00
parent a84fbb55c8
commit 2bdc12b0a0
3 changed files with 5 additions and 2 deletions

View file

@ -586,7 +586,7 @@ function get_data_for(view)
data['flash_fail'] = {flashs["fail"]}
data['flash_win'] = {flashs["win"] }
data['flash_info'] = {flashs["info"]}
data['theme_name'] = ""..conf["theme"]
data['theme'] = conf["theme"]
return data
end

View file

@ -11,5 +11,8 @@
<!-- Scripts -->
<script src="assets/js/global.js"></script>
{{#theme}}
<script src="assets/themes/{{theme}}/global.js"></script>
{{/theme}}
</body>
</html>

View file

@ -13,7 +13,7 @@
<!-- Stylesheets -->
<link rel="stylesheet" href="assets/css/ynh-style.css">
<link rel="stylesheet" href="assets/themes/{{theme_name}}.css">
<link rel="stylesheet" href="assets/themes/{{theme}}/stylesheet.css">
<!-- Icons -->
<link rel="shortcut icon" href="assets/icons/favicon.ico">