From af9bc5342a6b05d6525048d64ee381a393985dbe Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 18 Feb 2024 12:46:14 +0800 Subject: [PATCH] [opt] use page.subtitle --- layout/_partial/main/navbar/article_banner.ejs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layout/_partial/main/navbar/article_banner.ejs b/layout/_partial/main/navbar/article_banner.ejs index 9996c96..4372a3e 100644 --- a/layout/_partial/main/navbar/article_banner.ejs +++ b/layout/_partial/main/navbar/article_banner.ejs @@ -14,6 +14,10 @@ banner = Object.assign(banner, page.banner_info) if (banner.title == null) { banner.title = page.h1 != null ? page.h1 : page.title } +// 副标题 +if (banner.subtitle == null) { + banner.subtitle = page.subtitle +} function layoutBreadcrumb() { if (page.breadcrumb === false) {