mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
32 lines
926 B
Plaintext
32 lines
926 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 |