[WIP] make a blog template with original publication date

This commit is contained in:
mDuo13
2025-04-17 17:05:40 -07:00
parent d322370864
commit f0df097519
2 changed files with 21 additions and 0 deletions

View 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>
);
}

View File

@@ -7,6 +7,7 @@ labels:
markdown:
editPage:
hide: true
template: '../../@theme/templates/blogpost'
---
# Introducing XRP Ledger version 2.0.0