feat: twikoo 增加 option 配置

feat: aside widget 增加排序(只對page頁和sticky內的有效)
feat: aside 增加自定義 widget
improvement: readmode 優化
improvement: html結構優化
This commit is contained in:
Jerry committed 2020-12-24 01:29:09 +08:00
1 parent 25cf081250
commit d5d5681981
25 files changed
+242 -169

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
- var htmlClassHideAside = theme.aside.enable && theme.aside.hide ? 'hide-aside' : ''
- var hideAside = !theme.aside.enable || page.aside === false ? 'hide-aside' : ''
- var pageType = is_post() ? 'post' : 'page'
doctype html
html(lang=config.language data-theme=theme.display_mode class=htmlClassHideAside)
@@ -14,7 +15,7 @@ html(lang=config.language data-theme=theme.display_mode class=htmlClassHideAside
!=partial('includes/sidebar', {}, {cache:theme.fragment_cache})
#body-wrap
#body-wrap(class=pageType)
include ./header/index.pug
main#content-inner.layout(class=hideAside)
+1 -1
View File
@@ -13,7 +13,7 @@ script.
if (!{Boolean(option)}) {
const otherSetting = !{option}
setting = Object.assign({}, setting, otherSetting)
setting = Object.assign(setting, otherSetting)
}
const init = () => {
+1 -1
View File
@@ -32,7 +32,7 @@ hr
when 'Twikoo'
#twikoo-wrap
when 'Waline'
#waline
#waline-wrap
when 'Facebook Comments'
.fb-comments(data-colorscheme = theme.display_mode === 'dark' ? 'dark' : 'light'
data-numposts= theme.facebook_comments.pageSize || 10
Loaded 3 of 25 files, more files were not shown because too many files have changed in this diff. Show more