From f75e45311ff48d14aa28ae6899a13b26b751c005 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 30 Mar 2021 14:54:22 +0200 Subject: pinned posts on homepage working --- pages/post/[id].tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'pages/post') diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx index 3144057..23ce14e 100644 --- a/pages/post/[id].tsx +++ b/pages/post/[id].tsx @@ -10,7 +10,7 @@ import Image from '../../components/image'; import Chapters, { chapter } from '../../components/chapters'; import Tags from '../../components/tag'; -interface ArticleMeta { +export interface ArticleMeta { title?: string; subtitle?: string; author?: string; @@ -19,6 +19,16 @@ interface ArticleMeta { chapters?: Array; } +export function RenderedArticle(props: { content: string }) { + return ; +} + var headingLevel = (input: string) => input?.match(/^[#]+/)[0]?.length || 0; var sectionID = (input: string) => input @@ -52,13 +62,7 @@ export default function Post(props: {
- +
-- cgit v1.2.3