[opt] h1 & title
This commit is contained in:
parent
5c1ecd23ab
commit
48a6da7871
|
@ -1,6 +1,6 @@
|
|||
<%
|
||||
function layoutTitle() {
|
||||
const title = page.h1 || page.title;
|
||||
const title = page.h1 != null ? page.h1 : page.title;
|
||||
if (title && title.length > 0) {
|
||||
return '<h1 class="article-title"><span>' + title + '</span></h1>';
|
||||
} else {
|
||||
|
|
|
@ -6,7 +6,7 @@ if (page.header == undefined) {
|
|||
page.header = 'auto';
|
||||
}
|
||||
function layoutTitle() {
|
||||
const title = page.h1 || page.title;
|
||||
const title = page.h1 != null ? page.h1 : page.title;
|
||||
if (title && title.length > 0) {
|
||||
return '<h1 class="article-title"><span>' + title + '</span></h1>';
|
||||
} else {
|
||||
|
|
|
@ -13,7 +13,7 @@ if (page.title == undefined) {
|
|||
}
|
||||
}
|
||||
function layoutTitle() {
|
||||
const title = page.h1 || page.title;
|
||||
const title = page.h1 != null ? page.h1 : page.title;
|
||||
if (title && title.length > 0) {
|
||||
return '<h1 class="article-title"><span>' + title + '</span></h1>';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue