Add solitude

This commit is contained in:
IF-chan
2024-07-05 21:01:19 +08:00
parent 26d71c4fbc
commit 71758b9fce
289 changed files with 23277 additions and 0 deletions
@@ -0,0 +1,11 @@
if site.data.about
#about-page
include ../widgets/page/about/authorinfo
include ../widgets/page/about/contentinfo
include ../widgets/page/about/skillsinfo
include ../widgets/page/about/personalities
include ../widgets/page/about/motto
include ../widgets/page/about/hobbies
include ../widgets/page/about/other
include ../widgets/page/about/tenyear
include ../widgets/page/about/award
@@ -0,0 +1,8 @@
h1.page-title= _p('page.category')
.category-lists
.tag-cloud-list.is-center
each item in site.categories.find({ parent: { $exists: false } }).data
a(href=url_for(item.path))
span.tags-punctuation
= item.name
span.tagsPageCount= item.length
@@ -0,0 +1,2 @@
#article-container
!= page.content
@@ -0,0 +1,2 @@
include ../widgets/page/banner
include ../widgets/page/equipment/content
@@ -0,0 +1,14 @@
.flink#banners
include ../widgets/page/links/banner
.flink#article-container
each data in site.data.links.links
h2= data.class_name + " (" + data.link_list.length + ")"
.flink-desc= data.descr
case data.type
when 'card'
include ../widgets/page/links/linksCard
when 'item'
include ../widgets/page/links/linksItem
when 'discn'
include ../widgets/page/links/linksDiscn
!= page.content
@@ -0,0 +1,5 @@
- const { line,speed,hover,loop,enable } = theme.envelope
include ../widgets/page/message/content
if enable
include ../widgets/page/message/js
@@ -0,0 +1,11 @@
if theme.music.enable
#Music-bg
#Music-page
meting-js(id=theme.music.id server=theme.music.server type=theme.music.type mutex=theme.music.mutex ? "true" : "false" volume=theme.music.volume preload="none" data-lrctype="0" order="random")
.Music-loading
div APlayer加载中...
script(pjax).
(async function () {
if (typeof initializeMusicPlayer === "undefined") await utils.getScript('!{url_for(theme.cdn.music_js)}').then(() => initializeMusicPlayer())
else initializeMusicPlayer()
})()
@@ -0,0 +1,16 @@
- const { enable, limit, cache } = theme.recent_comments
- const {use, avatar} = theme.comment
include ../widgets/page/banner
if enable && use
#comments-page
case use[0]
when 'Twikoo'
include ../widgets/page/recentcomment/twikoo
when 'Valine'
include ../widgets/page/recentcomment/valine
when 'Waline'
include ../widgets/page/recentcomment/waline
when 'Artalk'
include ../widgets/page/recentcomment/artalk
@@ -0,0 +1,58 @@
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} 条短文 -
@@ -0,0 +1,8 @@
h1.page-title= __('page.tag')
.category-lists
.tag-cloud-list.is-center
each tag in site.tags.find({ parent: { $exists: false } }).data
a(href=url_for(tag.path))
span.tags-punctuation
= tag.name
span.tagsPageCount= tag.length
@@ -0,0 +1,13 @@
include ../widgets/page/banner
.flink#article-container
each data in site.data.tlink.links
h2= data.class_name + " (" + data.link_list.length + ")"
.flink-desc= data.descr
case data.type
when 'card'
include ../widgets/page/links/linksCard
when 'item'
include ../widgets/page/links/linksItem
when 'discn'
include ../widgets/page/links/linksDiscn
!= page.content