Add month and day to archive list

This commit is contained in:
2020-10-05 17:38:09 -05:00
parent 48224d4c20
commit 06a1569021

View File

@@ -14,7 +14,7 @@ export default function Archive({ data }) {
const postListItems = yg.edges.map(({node}) => {
return (
<li>
<a href={node.fields.slug}>{node.frontmatter.title}</a>
<a href={node.fields.slug}>{node.frontmatter.date} {node.frontmatter.title}</a>
</li>
);
});
@@ -48,6 +48,7 @@ export const query = graphql`
}
frontmatter {
title
date(formatString: "MMM Do")
}
}
}