File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react' ;
2
- import { Markdown as MarkdownWrapper } from '@redocly/theme/components/Markdown/Markdown' ;
1
+ import { Markdown } from '@redocly/theme/components/Markdown/Markdown' ;
3
2
import { DocumentationLayout } from '@redocly/theme/layouts/DocumentationLayout' ;
3
+ import { TableOfContent } from '@redocly/theme/components/TableOfContent/TableOfContent' ;
4
+ import styled from 'styled-components' ;
5
+
6
+ const LayoutWrapper = styled . div `
7
+ display: flex;
8
+ flex: 1;
9
+ width: 100%;
10
+ ` ;
4
11
5
12
function PostInfo ( data ) {
6
13
return (
7
14
< div className = "blog-post-info" >
8
- Publication date: { data . date }
15
+ Publication date: { data . data . date }
9
16
</ div >
10
17
)
11
18
}
12
19
13
20
export default function BlogPost ( { pageProps, children } ) {
14
21
return (
15
- < DocumentationLayout tableOfContent = { null } feedback = { null } >
16
- < PostInfo data = { pageProps . frontmatter } />
17
- < MarkdownWrapper > { children } </ MarkdownWrapper >
18
- </ DocumentationLayout >
22
+ < LayoutWrapper >
23
+ < DocumentationLayout { ...pageProps } >
24
+ < PostInfo data = { pageProps . frontmatter } />
25
+ < Markdown > { children } </ Markdown >
26
+ </ DocumentationLayout >
27
+ < TableOfContent { ...pageProps } />
28
+ </ LayoutWrapper >
19
29
) ;
20
30
}
You can’t perform that action at this time.
0 commit comments