diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-30 12:55:39 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-30 12:55:39 +0200 |
commit | 8798e98cf0ebc3653366566ad6d114a021f5a757 (patch) | |
tree | e19b84a3e1472b25a41601cf05e3d53ee2429039 | |
parent | 2a0b62d48e9c63246d1f8935acc9756137dd8fd2 (diff) |
show tags from markdown file :tada:
-rw-r--r-- | pages/post/[id].tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx index 38c894c..3144057 100644 --- a/pages/post/[id].tsx +++ b/pages/post/[id].tsx @@ -8,6 +8,7 @@ import Navbar from '../../components/navbar'; // import Button from '../../components/button'; import Image from '../../components/image'; import Chapters, { chapter } from '../../components/chapters'; +import Tags from '../../components/tag'; interface ArticleMeta { title?: string; @@ -42,6 +43,7 @@ export default function Post(props: { <div className="titleWrapper"> <h1>{props.meta.title}</h1> <p className="subtile">{props.meta.subtitle}</p> + { props.meta.tags && <Tags tags={props.meta.tags}/> } </div> <div className="navAreaWrapper"> <div className="sticky"> |