Skip to content

Commit 9bab10c

Browse files
committed
modify talk.pug
1 parent 13c8e7f commit 9bab10c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

source/_data/in-memory-of-zhangxuefeng.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ subTitle: 时代的清醒剂,寒门的领路人
33
tips: 谨以此页面纪念那位在荒原中为我们指明方向的引路人...
44
limitPerPage: 20
55
blockquote: true
6+
bottom: false
67
top_background: https://blogfiles.oss.fyz666.xyz/webp/37441ab4-1c83-4204-b8dd-efee20d085bb.webp
78
talk_list:
89
- content: |

themes/butterfly/layout/includes/page/talk.pug

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ script.
4242
if talk
4343
- var i = talk
4444
- var blockquote = i.blockquote
45+
- var bottom = i.bottom
4546
#talk_page
4647
.author-content.author-content-item.top-background.single(style=i.top_background ? `background: url(${i.top_background}) center 28% / cover no-repeat;` : "")
4748
.card-content
@@ -65,7 +66,7 @@ if talk
6566
li.bber-item(class={ 'talk-hidden': __hidden, 'bbItem-grayscale': __grayscale }, style= __hidden ? 'display:none;' : '')
6667
.bber-content
6768
p.datacont(style="white-space:pre-wrap;")
68-
if item.blockquote || blockquote
69+
if (typeof item.blockquote !== 'undefined' ? item.blockquote : blockquote)
6970
blockquote !{item.content}
7071
else
7172
| !{item.content}
@@ -90,8 +91,9 @@ if talk
9091
if item.aplayer
9192
.bber-music
9293
.aplayer.no-destroy(data-id=item.aplayer.id,data-server=item.aplayer.server,data-type="song",data-order="list",data-preload="none",data-autoplay="false",data-mutex="true",data-theme='var(--fyz-main)')
93-
hr
94-
.bber-bottom
94+
if (typeof item.bottom !== 'undefined' ? item.bottom : bottom)
95+
hr
96+
.bber-bottom
9597
.bber-info
9698
if item.date
9799
.bber-info-time

0 commit comments

Comments
 (0)