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

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

No files matched your search

+7
View File
@@ -1,8 +1,15 @@
<!--
IMPORTANT: Please follow the template to create a new issue.
重要:請依照該模板來提交。
If you upgrade from the old version, and an error occurs when running, please copy the new content in the config to the butterfly.yml
如果你是由舊版本升級到新版,運行時出現報錯,請首先把config裏新的內容複製到舊的butterfly設置去
If you are a problem when visit the website, please open your browser 'developer tools (shortcut F12)' and check the console if there is an error, include your website address in the feedback
如果你是線上訪問出現問題,請檢查瀏覽器‘開發人員工具(快捷鍵F12)’的console是否有報錯,反饋時附上你的網站
-->
## I want to create a new issue <!-- 我想要建立一個新的issue -->
<!-- Check all with "x" especially FAQ & Documentation!! (使用 "x" 選擇) -->
+1 -2
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))
+1 -5
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))
!=fragment_cache('my_js', function(){return my_html('js',theme.CDN_USE.js)})
include ./additional-js.pug
Loaded 3 of 9 files, more files were not shown because too many files have changed in this diff. Show more