From 7d59f08a57558c3514ffb4d686e746ff4528153d Mon Sep 17 00:00:00 2001 From: xiang578 Date: Sat, 25 Mar 2023 13:47:55 +0800 Subject: [PATCH] fix format --- layout/common/article.jsx | 18 ++++++++++++------ layout/common/related.jsx | 23 +++++++++++++++++++++++ source/css/style.styl | 4 +++- 3 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 layout/common/related.jsx diff --git a/layout/common/article.jsx b/layout/common/article.jsx index 02e4d4c..bea3ca0 100644 --- a/layout/common/article.jsx +++ b/layout/common/article.jsx @@ -4,6 +4,7 @@ const { toMomentLocale } = require('hexo/lib/plugins/helper/date'); const Share = require('./share'); const Donates = require('./donates'); const Comment = require('./comment'); +const Related = require('./related'); const ArticleLicensing = require('hexo-component-inferno/lib/view/misc/article_licensing'); /** @@ -92,20 +93,25 @@ module.exports = class extends Component { {!index && article && article.licenses && Object.keys(article.licenses) ? : null} {/* Tags */} - {!index && page.tags && page.tags.length ? {/* Donate button */} - {!index ? : null} + {/* {!index ? : null} */} + {/* Related Post*/} + {!index ? :null} {/* Post navigation */} {!index && (page.prev || page.next) ?