Mercurial > libervia-web
changeset 1321:eb85ef26cb4a
server: use `bulma` theme as default for default site:
`default` theme is not used for now as real default, because dev work is focusing on bulma
theme, and the default one may be broken. This should (or may not) change in the future.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Aug 2020 16:56:04 +0200 |
parents | 0cbf86b1dcca |
children | a0954b6610aa |
files | libervia/server/server.py |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/server/server.py Sat Aug 01 16:47:24 2020 +0200 +++ b/libervia/server/server.py Sat Aug 01 16:56:04 2020 +0200 @@ -182,7 +182,15 @@ self.host_name = host_name self.site_name = site_name self.site_path = Path(site_path) - self.default_theme = self.getConfig('theme', C.TEMPLATE_THEME_DEFAULT) + self.default_theme = self.getConfig('theme') + if self.default_theme is None: + if not host_name: + # FIXME: we use bulma theme by default for main site for now + # as the development is focusing on this one, and default theme may + # be broken + self.default_theme = 'bulma' + else: + self.default_theme = C.TEMPLATE_THEME_DEFAULT self.site_themes = set() self.named_pages = {} self.browser_modules = {}