feat: 適配 Alogia Search 5.0

feat: 搜索分頁圓角
feat: 説説頁面 tag 可以爲空
This commit is contained in:
Jerry
2024-10-13 21:25:10 +08:00
parent 3d7a033721
commit 95ca6878f0
4 changed files with 17 additions and 11 deletions

View File

@@ -41,9 +41,12 @@
${item.content}
</div>
<div class="shuoshuo-footer">
<div class="shuoshuo-tags">
${item.tags.map(tag => `<span class="shuoshuo-tag">${tag}</span>`).join('')}
</div>
${item.tags && item.tags.length ? `
<div class="shuoshuo-footer">
<div class="shuoshuo-tags">
${item.tags.map(tag => `<span class="shuoshuo-tag">${tag}</span>`).join('')}
</div>
</div>` : ''}
</div>
</div>
`
@@ -98,6 +101,7 @@
.shuoshuo-content
!=markdown(i.content)
.shuoshuo-footer
.shuoshuo-tags
each tag in i.tags
span.shuoshuo-tag=tag
if i.tags
.shuoshuo-tags
each tag in i.tags
span.shuoshuo-tag=tag