This commit is contained in:
myw committed 2024-10-20 17:47:28 +08:00
1 parent 95ca6878f0
commit c72f8c41ec
32 files changed
+207 -209

No files matched your search

+3 -9
View File
@@ -105,15 +105,9 @@ mixin indexPostUI()
i.fa-solid.fa-spinner.fa-spin
//- Display the article introduction on homepage
case theme.index_post_content.method
when false
- break
when 1
.content!= article.description
when 2
.content!= article.description || truncate(article.content, theme.index_post_content.length)
default
.content!= truncate(article.content, theme.index_post_content.length)
- const content = postDesc(article)
if content
.content!=content
if theme.ad && theme.ad.index
if (index + 1) % 3 === 0
+4 -2
View File
@@ -21,6 +21,8 @@
let start = 0
const container = document.getElementById('article-container')
const showDateAndTine = date => new Date(date).toLocaleString()
const addData = data => {
const cLength = data.length
const end = start + 10 > cLength ? cLength : start + 10
@@ -34,7 +36,7 @@
</div>
<div class="shuoshuo-info">
<div class="shuoshuo-author">${item.author || '!{config.author}'}</div>
<div class="shuoshuo-date">${btf.diffDate(item.date, true)}</div>
<time class="shuoshuo-date" title="${showDateAndTine(item.date)}">${btf.diffDate(item.date, true)}</time>
</div>
</div>
<div class="shuoshuo-content">
@@ -97,7 +99,7 @@
img.no-lightbox(src=i.avatar || url_for(theme.avatar.img))
.shuoshuo-info
.shuoshuo-author=i.author || config.author
.shuoshuo-date=relative_date(i.date)
time.shuoshuo-date(title=full_date(i.date))=date(i.date)
.shuoshuo-content
!=markdown(i.content)
.shuoshuo-footer
+1 -1
View File
@@ -1,2 +1,2 @@
.tag-cloud-list.is-center
.tag-cloud-list.text-center
!=cloudTags({source: site.tags, orderby: page.orderby || 'random', order: page.order || 1, minfontsize: 1.2, maxfontsize: 1.5, limit: 0, unit: 'em'})
Loaded 3 of 32 files, more files were not shown because too many files have changed in this diff. Show more