breaking changes: archives 隱藏 aside 設置更改

feat: tag 和 category 頁面可設置隱藏 aside
feat: 子歸檔頁面顯示的文章數量不再顯示總文章數量,而是對應的子歸檔文章數量
feat: 為一些數據加載增加 loading 顯示
improvement: 修改 note 圖標 class 名字,避免第三方圖標覆蓋主題樣式
This commit is contained in:
Jerry
2022-06-17 01:01:46 +08:00
Unverified
parent 9a33e23a9c
commit 931a0ba82d
11 changed files with 104 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ function postNote (args, content) {
const iconArray = args[args.length - 2]
if (iconArray && iconArray.startsWith('fa')) {
icon = `<i class="note-icon ${iconArray}"></i>`
args[args.length - 2] = 'icon'
args[args.length - 2] = 'icon-padding'
}
return `<div class="note ${args.join(' ')}">${icon + hexo.render.renderSync({ text: content, engine: 'markdown' })}</div>`