diff --git a/layout/page.ejs b/layout/page.ejs
index 80fdaa5..d837d1d 100755
--- a/layout/page.ejs
+++ b/layout/page.ejs
@@ -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 '
' + title + '
';
} else {
diff --git a/layout/post.ejs b/layout/post.ejs
index 375280b..12d4af4 100755
--- a/layout/post.ejs
+++ b/layout/post.ejs
@@ -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 '' + title + '
';
} else {
diff --git a/layout/wiki.ejs b/layout/wiki.ejs
index 2c2f279..cf6a623 100755
--- a/layout/wiki.ejs
+++ b/layout/wiki.ejs
@@ -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 '' + title + '
';
} else {