From edbc0f666f6be3622131425028bfa66af1b8f121 Mon Sep 17 00:00:00 2001 From: Plain <28282306+plain-dev@users.noreply.github.com> Date: Fri, 26 Mar 2021 15:37:54 +0800 Subject: [PATCH] feat(layout): hide the element when the page title is empty Hide the element when the page title is empty --- layout/common/article.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/common/article.jsx b/layout/common/article.jsx index eb85201..c65b99e 100644 --- a/layout/common/article.jsx +++ b/layout/common/article.jsx @@ -80,9 +80,9 @@ module.exports = class extends Component { : null} {/* Title */} -

+ {page.title !== '' ?

{index ? {page.title} : page.title} -

+ : null} {/* Content/Excerpt */}
{/* Licensing block */}