mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2026-06-03 16:56:40 +00:00
[WIP] make a blog template with original publication date
This commit is contained in:
20
@theme/templates/blogpost.tsx
Normal file
20
@theme/templates/blogpost.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import { Markdown as MarkdownWrapper } from '@redocly/theme/components/Markdown/Markdown';
|
||||
import { DocumentationLayout } from '@redocly/theme/layouts/DocumentationLayout';
|
||||
|
||||
function PostInfo(data) {
|
||||
return (
|
||||
<div className="blog-post-info">
|
||||
Publication date: {data.date}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default function BlogPost({ pageProps, children }) {
|
||||
return (
|
||||
<DocumentationLayout tableOfContent={null} feedback={null}>
|
||||
<PostInfo data={pageProps.frontmatter} />
|
||||
<MarkdownWrapper>{children}</MarkdownWrapper>
|
||||
</DocumentationLayout>
|
||||
);
|
||||
}
|
||||
@@ -7,6 +7,7 @@ labels:
|
||||
markdown:
|
||||
editPage:
|
||||
hide: true
|
||||
template: '../../@theme/templates/blogpost'
|
||||
---
|
||||
# Introducing XRP Ledger version 2.0.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user