mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
2. Feature: add the option to change the site name font-family 3. Feature: add the option to close instant-page 4. Fix: Display null when the sutitle not set
41 lines
1.2 KiB
Plaintext
41 lines
1.2 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!= tags(site.tags)
|
|
if page.comments !== false
|
|
include includes/comments/index.pug
|
|
#aside_content.aside_content
|
|
include includes/aside.pug
|
|
|
|
else if page.type === 'link'
|
|
include flink.pug
|
|
if page.comments !== false
|
|
include includes/comments/index.pug
|
|
#aside_content.aside_content
|
|
include includes/aside.pug
|
|
else if page.type === 'categories'
|
|
#post-content.category-content
|
|
.category-lists
|
|
.category__title= _p('page.category')
|
|
| -
|
|
span.category__amount= site.categories.length
|
|
div!= list_categories()
|
|
if page.comments !== false
|
|
include includes/comments/index.pug
|
|
#aside_content.aside_content
|
|
include includes/aside.pug
|
|
else
|
|
article#page
|
|
h1= page.title
|
|
.article-container!= page.content
|
|
include includes/pagination.pug
|
|
if page.comments !== false
|
|
include includes/comments/index.pug
|
|
#aside_content.aside_content
|
|
include includes/aside.pug
|