[opt] use page.subtitle

This commit is contained in:
xaoxuu 2024-02-18 12:46:14 +08:00
parent 2f260bb2d7
commit af9bc5342a
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ banner = Object.assign(banner, page.banner_info)
if (banner.title == null) { if (banner.title == null) {
banner.title = page.h1 != null ? page.h1 : page.title banner.title = page.h1 != null ? page.h1 : page.title
} }
// 副标题
if (banner.subtitle == null) {
banner.subtitle = page.subtitle
}
function layoutBreadcrumb() { function layoutBreadcrumb() {
if (page.breadcrumb === false) { if (page.breadcrumb === false) {