mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
feat: 優化 aside_archives ,改進性能和可讀性 feat: 改善 inlineImg 和 timeline 標籤的文檔,優化時間線邏輯 feat: 更新 gallery 標籤以支持額外參數,優化圖片顯示邏輯 improvement: 優化隨機封面過濾器邏輯, 避免連續重複 feat: 最新評論限制顯示 1-10 條之間 fix: artalk 的最新評論顯示待定或者封禁的評論的 bug
32 lines
895 B
Plaintext
32 lines
895 B
Plaintext
extends includes/layout.pug
|
|
|
|
block content
|
|
- const noCardLayout = ['shuoshuo', '404'].includes(page.type) ? 'nc' : ''
|
|
- var commentsJsLoad = false
|
|
|
|
mixin commentLoad
|
|
if page.comments !== false && theme.comments.use
|
|
- commentsJsLoad = true
|
|
!=partial('includes/third-party/comments/index', {}, {cache: true})
|
|
|
|
#page(class=noCardLayout)
|
|
if top_img === false && page.title
|
|
.page-title= page.title
|
|
|
|
case page.type
|
|
when 'tags'
|
|
include includes/page/tags.pug
|
|
+commentLoad
|
|
when 'link'
|
|
include includes/page/flink.pug
|
|
+commentLoad
|
|
when 'categories'
|
|
include includes/page/categories.pug
|
|
+commentLoad
|
|
when '404'
|
|
include includes/page/404.pug
|
|
when 'shuoshuo'
|
|
include includes/page/shuoshuo.pug
|
|
default
|
|
include includes/page/default-page.pug
|
|
+commentLoad |