feat: 在設置裏配置js/css(CDN_USE)時可以設定其他參數 closes #152

 feat: readmode下可以切換darkmode和lightmode
💄 fix: 高分辨率下的界面適配 closes #163
🐛 fix: 修復DarkMode下,note標簽的顯示bug
This commit is contained in:
Jerry
2020-03-30 21:45:13 +08:00
parent 16a3ac510d
commit 5e37ab641a
9 changed files with 60 additions and 35 deletions

View File

@@ -59,8 +59,7 @@ script(src=url_for(theme.CDN.js_cookies))
if theme.darkmode.enable
!=partial('includes/head/darkmode', {}, {cache:theme.fragment_cache})
each item in theme.CDN_USE.css
link(rel='stylesheet', href=url_for(item))
!=fragment_cache('my_css', function(){return my_html('css',theme.CDN_USE.css)})
if theme.fontawesome_v5 && theme.fontawesome_v5.enable
link(rel='stylesheet', href=url_for(theme.CDN.fontawesome_v5))

View File

@@ -41,10 +41,6 @@ html(lang=config.language data-theme=theme.display_mode)
!=partial('includes/search/index', {}, {cache:theme.fragment_cache})
each item in theme.CDN_USE.js
script(src=url_for(item))
include ./additional-js.pug
!=fragment_cache('my_js', function(){return my_html('js',theme.CDN_USE.js)})
include ./additional-js.pug