From 8ad6c83c8bcab64e4cfb43bc6c3f26ced058a363 Mon Sep 17 00:00:00 2001 From: yijun-lee Date: Wed, 15 Jan 2025 18:13:46 +0900 Subject: [PATCH] fix: hide date display on the index page --- content/index.md | 3 ++- quartz/components/renderPage.tsx | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/index.md b/content/index.md index 961bfa18..c4d36e41 100644 --- a/content/index.md +++ b/content/index.md @@ -1,7 +1,8 @@ --- title: Welcome to Cryptography SecondBrain --- -Welcome to Cryptography SecondBrain. This is a comprehensive wiki covering a wide range of cryptographic topics from basic algebra to various Privacy Enhancing Technologies (PET). For newcomers, please refer to [[How to get started]] to learn how to use this wiki for your studies. +# Welcome to Cryptography SecondBrain! +This is a comprehensive wiki covering a wide range of cryptographic topics from basic algebra to various Privacy Enhancing Technologies (PET). For newcomers, please refer to [[How to get started]] to learn how to use this wiki for your studies. Cryptography SecondBrain is an open-source project maintained by Decipher. If you have an interest in cryptography, we encourage you to contribute and share your knowledge. For more details on how to get involved, please refer to our [[Contribution Guide]]. diff --git a/quartz/components/renderPage.tsx b/quartz/components/renderPage.tsx index 251a53f2..150a23a7 100644 --- a/quartz/components/renderPage.tsx +++ b/quartz/components/renderPage.tsx @@ -226,9 +226,8 @@ export function renderPage( ))}
- {beforeBody.map((BodyComponent) => ( - - ))} + {slug !== "index" && + beforeBody.map((BodyComponent) => )}