mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Improvement: Add checks
This commit is contained in:
parent
92a3e60137
commit
534a101eca
@ -11,7 +11,11 @@ export default function MarkdownTemplate({ data }) {
|
||||
{/* <HeaderSection title={post.frontmatter.title} />
|
||||
{post.tableOfContents && <DocToc tableOfContents={post.tableOfContents} />}*/}
|
||||
<Content>
|
||||
<DocContent html={post.html} htmlAst={post.htmlAst} />
|
||||
{post && post.html ? (
|
||||
<DocContent html={post.html} htmlAst={post.htmlAst} />
|
||||
) : (
|
||||
<div>No content present</div>
|
||||
)}
|
||||
</Content>
|
||||
</>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user