File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
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' ;
3
+ import { DocumentationLayout } from '@redocly/theme/layouts/DocumentationLayout' ;
4
+
5
+ function PostInfo ( data ) {
6
+ return (
7
+ < div className = "blog-post-info" >
8
+ Publication date: { data . date }
9
+ </ div >
10
+ )
11
+ }
12
+
13
+ export default function BlogPost ( { pageProps, children } ) {
14
+ return (
15
+ < DocumentationLayout tableOfContent = { null } feedback = { null } >
16
+ < PostInfo data = { pageProps . frontmatter } />
17
+ < MarkdownWrapper > { children } </ MarkdownWrapper >
18
+ </ DocumentationLayout >
19
+ ) ;
20
+ }
Original file line number Diff line number Diff line change 7
7
markdown :
8
8
editPage :
9
9
hide : true
10
+ template : ' ../../@theme/templates/blogpost'
10
11
---
11
12
# Introducing XRP Ledger version 2.0.0
12
13
You can’t perform that action at this time.
0 commit comments