Files
2024-07-05 21:01:19 +08:00

58 lines
3.1 KiB
Plaintext

include ../widgets/page/banner
if theme.says.enable
#bber
section.timeline.page-1
ul.list.waterfall
each item in site.data.essay.essay_list.slice(0, theme.says.strip)
li.item
if theme.says.style === 2
.meta
img.avatar(src=theme.aside.card.author.img)
.info
span.bber_nick= config.author
time.datetime.bber_date(datetime=moment(item.date).format())
if item.content
a.bber-reply.goComment(onclick=`sco.toTalk('${item.content}')`)
i.solitude.st-chat-fill
#bber-content
p.datacont= item.content
if item.image
.bber-content-img
each img in item.image
img(src=img alt="image")
if item.aplayer
.bber-music
meting-js(server=item.aplayer.server type="song" id=item.aplayer.id mutex="true" preload="none" theme="var(--efu-main)" data-lrctype="0")
if item.video
.bber-video
if item.video.player
video(src=item.video.player controls="controls" style="object-fit: cover;")
if item.video.bilibili
iframe(src='//player.bilibili.com/player.html?autoplay=0&bvid=' + item.video.bilibili scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true")
if theme.says.style === 1
hr
.bber-bottom
.bber-info
.bber-info-time
i.solitude.st-calendar-todo-fill
time.datetime(datetime=moment(item.date).format())
if item.location
.bber-info-location
i.solitude.st-map-pin-fill
| #{item.location}
if item.link
a.bber-content-link(href=url_for(item.link) target="_blank")
i.solitude.st-link-m-line
| 链接
if item.content
a.bber-reply(onclick=`sco.toTalk('${item.content}')`)
i.solitude.st-chat-fill
#bber-tips
if theme.says.strip === -1
| - 已展开所有短文 -
else
| - 只展示最近 #{theme.says.strip} 条短文 -