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 1/2] 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 */} From d4511424bbb72d33287061236706eb34aa7caf5a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 May 2021 05:47:16 +0000 Subject: [PATCH 2/2] chore(deps-dev): bump eslint-plugin-json from 2.1.2 to 3.0.0 Bumps [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json) from 2.1.2 to 3.0.0. - [Release notes](https://github.com/azeemba/eslint-plugin-json/releases) - [Commits](https://github.com/azeemba/eslint-plugin-json/commits/v3.0.0) Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 20c7527..8c6f0f3 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "bulma-stylus": "0.8.0", "eslint": "^7.6.0", "eslint-config-hexo": "^4.1.0", - "eslint-plugin-json": "^2.0.1", + "eslint-plugin-json": "^3.0.0", "eslint-plugin-react": "^7.17.0", "hexo": "^5.0.2", "hexo-log": "^2.0.0",