mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
extends includes/layout.pug
|
|
|
|
block content
|
|
if page.type === 'tags'
|
|
.tag-cloud
|
|
.tag-cloud__title= _p('page.tag')
|
|
| -
|
|
span.tag-cloud__amount= site.tags.length
|
|
.tag-cloud-tags
|
|
!=cloudTags({source: site.tags, minfontsize: 1.2, maxfontsize: 2.1, limit: 0, unit: 'em'})
|
|
if page.comments !== false && theme.comments && theme.comments.use
|
|
- var commentsJsLoad = true
|
|
!=partial('includes/third-party/comments/index', {}, {cache:theme.fragment_cache})
|
|
else if page.type === 'link'
|
|
include flink.pug
|
|
else if page.type === 'categories'
|
|
.category-content
|
|
.category-lists
|
|
.category__title= _p('page.category')
|
|
| -
|
|
span.category__amount= site.categories.length
|
|
div!= list_categories()
|
|
if page.comments !== false && theme.comments && theme.comments.use
|
|
- var commentsJsLoad = true
|
|
!=partial('includes/third-party/comments/index', {}, {cache:theme.fragment_cache})
|
|
else
|
|
#page
|
|
if theme.douban && theme.douban.meta && doubanExist
|
|
meta(name="referrer" content="no-referrer")
|
|
#article-container
|
|
if top_img === false
|
|
h1.page-title= page.title
|
|
!= page.content
|
|
if page.comments !== false && theme.comments && theme.comments.use
|
|
- var commentsJsLoad = true
|
|
!=partial('includes/third-party/comments/index', {}, {cache:theme.fragment_cache}) |