mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
feat: 可配置最新評論的緩存時間 fix: 修復pjax下不會跳轉404頁面的bug fix: 修復手持設備橫向翻轉時,menu 沒有進行判斷,而導致樣式錯亂的bug fix: 修復文字點擊關閉random無效的bug fix: 修復子目錄下,打賞圖片跳轉鏈接會錯誤的bug improvement: 文章版權右上角改為 版權icon improvement: pangu的操作範圍增大到 body-wrap裏的內容 improvement: pug 判斷優化 improvement: 最新評論js優化 remove: 移除 fragment_cache 配置(默認開啟) remove: 移除百度推送(百度已棄用)和百度轉碼
32 lines
989 B
Plaintext
32 lines
989 B
Plaintext
extends includes/layout.pug
|
|
|
|
block content
|
|
#post
|
|
if top_img === false
|
|
include includes/header/post-info.pug
|
|
|
|
article#article-container.post-content!=page.content
|
|
include includes/post/post-copyright.pug
|
|
.tag_share
|
|
if (theme.post_meta.post.tags)
|
|
.post-meta__tag-list
|
|
each item, index in page.tags.data
|
|
a(href=url_for(item.path)).post-meta__tags #[=item.name]
|
|
include includes/third-party/share/index.pug
|
|
|
|
if theme.reward.enable
|
|
!=partial('includes/post/reward', {}, {cache: true})
|
|
|
|
//- ad
|
|
if theme.ad && theme.ad.post
|
|
.ads-wrap!=theme.ad.post
|
|
|
|
if theme.post_pagination
|
|
include includes/pagination.pug
|
|
if theme.related_post && theme.related_post.enable
|
|
!= related_posts(page,site.posts)
|
|
|
|
if page.comments !== false && theme.comments && theme.comments.use
|
|
- var commentsJsLoad = true
|
|
!=partial('includes/third-party/comments/index', {}, {cache: true})
|
|
|