From 5edb008564ac17e03988a17b1ddecec79b3f7406 Mon Sep 17 00:00:00 2001 From: Yuanhao Shen <703810491@qq.com> Date: Thu, 2 Jan 2025 04:18:29 +0800 Subject: [PATCH] Update article.jsx feat(core): Add pin icon for pinned articles on homepage (issue #1337) --- layout/common/article.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/common/article.jsx b/layout/common/article.jsx index c47ec25b5..28dc4b6ca 100644 --- a/layout/common/article.jsx +++ b/layout/common/article.jsx @@ -48,6 +48,8 @@ module.exports = class extends Component { {/* Metadata */} {page.layout !== 'page' ?
+ {/* PIN Icon */} + {page.top ? () : null} {/* Creation Date */} {page.date && ${date(page.date)}`)