mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
feat: 主頁文章時間和文章頁文章時間可以配置顯示日期還是相對時間 feat: top_img 可配置 [留空(默認色)/顏色/漸變色/圖片鏈接/ false(不顯示top_img)] feat: footer可配置背景 [留空/false(默認色)/顏色/漸變色/圖片鏈接/true(跟top_img一樣)] improvement: preloader 在 pjax 下 每個頁面都會加載 improvement: 修改判斷,避免用户設置2個lightbox 而導致報錯(只能設置一個) improvement: 精確時間顯示 (剛剛/幾分鐘前/幾小時前/幾天前/幾個月前) improvement: 刪除不必要的語言文件和css chore: update hexo-renderer-stylus to 2.0.1
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, 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}) |