💥 改cdn_use為inject,可插入代碼到head或者bottom

💥 移除對文章隱藏的支持,如需要,請使用插件,hexo-hide-posts/hexo-generator-indexed
💥 移除subtitle金山詞霸每日一句,增加搏天api的隨機語錄
✨ subtitle修改為網頁加載完後再加載,防止api回應過慢而阻礙網頁顯示
✨ 適配valine 1.4.0, 刪除部分valine夜間模式代碼
✨ meta增加article:published_time和article:modified_time
✨ 當沒有設置Description時,會自動讀取文章前200個文字作為meta Description
✨ sidebar menu 增加頭像轉圈hover
💄 調整aside和mobile sidebar 網頁資訊佈局,當缺少一個時,寬度依舊平分
🐛 調整子目錄的排版(向左對齊),修復只能點擊子目錄文字才能跳轉的bug
🔥 pug精簡 刪除recent-post.pug  改為引用mixins/post-ui.pug
This commit is contained in:
Jerry committed 2020-04-12 02:40:54 +08:00
1 parent e81a81c9d1
commit d62ec1b866
29 files changed
+223 -369

No files matched your search

-1
View File
@@ -18,5 +18,4 @@ html(lang=config.language data-theme=theme.display_mode)
#error_subtitle= theme.error_404.subtitle
include includes/rightside.pug
!=partial('includes/search/index', {}, {cache:theme.fragment_cache})
!=fragment_cache('my_js', function(){return my_html('js',theme.CDN_USE.js)})
include includes/additional-js.pug
+2 -2
View File
@@ -2,9 +2,9 @@ extends includes/layout.pug
block content
if theme.category_ui == 'index'
include ./includes/mixins/UI.pug
include ./includes/mixins/post-ui.pug
#recent-posts.recent-posts.category_ui
+UI_NEW(page.posts)
+postUI
include includes/pagination.pug
else
include ./includes/mixins/article-sort.pug
+7 -1
View File
@@ -1,3 +1,7 @@
script(src=url_for(theme.CDN.jquery))
script(src=url_for(theme.CDN.utils))
script(src=url_for(theme.CDN.main))
if theme.translate && theme.translate.enable
script(src=url_for(theme.CDN.translate))
@@ -62,4 +66,6 @@ if theme.mermaid.enable
include ./math/mermaid.pug
if is_home()
include ./head/subtitle.pug
include ./head/subtitle.pug
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
Loaded 3 of 29 files, more files were not shown because too many files have changed in this diff. Show more