fix: 更新 package.json 和 plugins.yml 中的版本號

fix: 修正 truncateContent 函數, 加密文章不显示自动擷取內容
feat: 增加首頁樣式以支持單詞換行
fix: 修正 truncateContent 函數以正確處理自動擷取內容
fix: 修复 card_archives 计数 bug
fix: 修正分頁順序邏輯
This commit is contained in:
Jerry
2025-05-09 17:52:01 +08:00
parent ca030589fb
commit cf059bd533
7 changed files with 73 additions and 63 deletions

View File

@@ -9,8 +9,8 @@ if theme.structured_data && page.layout === 'post'
const datePublished = page.date.toISOString()
const dateModified = (page.updated || page.date).toISOString()
const author = page.copyright_author || config.author
const authorHrefVal = page.copyright_author_href || theme.post_copyright.author_href || site.url;
const authorHref = full_url_for(authorHrefVal);
const authorHrefVal = page.copyright_author_href || theme.post_copyright.author_href || site.url
const authorHref = full_url_for(authorHrefVal)
const jsonLd = {
"@context": "https://schema.org",
@@ -25,9 +25,9 @@ if theme.structured_data && page.layout === 'post'
"name": author,
"url": authorHref
}]
};
}
jsonLdScript = JSON.stringify(jsonLd, null, 2);
jsonLdScript = JSON.stringify(jsonLd, null, 2)
-
script(type="application/ld+json").

View File

@@ -7,7 +7,7 @@
}
if globalPageType === 'post'
- let paginationOrder = theme.post_pagination === 1 ? { prev: page.prev, next: page.next } : { prev: page.next, next: page.prev }
- let paginationOrder = theme.post_pagination === 2 ? { prev: page.prev, next: page.next } : { prev: page.next, next: page.prev }
nav#pagination.pagination-post
each direction, key in paginationOrder