Hardcode single default CSS - breaking change

- Themes likely broken at this point
- Break existing use of inline CSS
alt-html-css
Admin 2020-11-12 12:42:41 +00:00
parent c3554124fa
commit e44dbc2497
1 changed files with 4 additions and 2 deletions

View File

@ -531,8 +531,10 @@ def htmlHeaderWithExternalStyle(cssFilename: str, lang='en') -> str:
if fontName:
htmlStr += ' <link rel="preload" as="font" type="' + \
fontFormat + '" href="' + fontName + '" crossorigin>\n'
cssFile = '/' + cssFilename.split('/')[-1]
htmlStr += ' <link rel="stylesheet" href="' + cssFile + '">\n'
cssFile = cssFilename.split('/')[-1]
# TODO: Clean up - default load only one base css file
htmlStr += ' <link rel="stylesheet" href="base.css">\n'
#htmlStr += ' <link rel="stylesheet" href="' + cssFile + '">\n'
htmlStr += ' <link rel="manifest" href="/manifest.json">\n'
htmlStr += ' <meta name="theme-color" content="grey">\n'
htmlStr += ' <title>Epicyon</title>\n'