diff --git a/doordesk/src/components/Blog.tsx b/doordesk/src/components/Blog.tsx index dfc3934..5234e70 100644 --- a/doordesk/src/components/Blog.tsx +++ b/doordesk/src/components/Blog.tsx @@ -1,6 +1,10 @@ -import { Component } from 'react' +import { Component } from 'react' import BlogPost from './BlogPost.js' +const BLOG_URLS: string[] = [ + 'blog/20220506-change.html', + 'blog/000000000-swim.html' +] interface IBlogProps { } @@ -11,11 +15,15 @@ class Blog extends Component { constructor(props: IBlogProps) { super(props) } + renderPosts(urls: string[]): JSX.Element[] { + return ( + urls.map((postURL) => ) + ) + } render() { return ( <> - - + {this.renderPosts(BLOG_URLS)} ) }