import * as React from "react"; import { graphql } from "gatsby"; import Layout, { Section } from "../components/Layout"; import { Aside } from "../components/News"; import Link from "../components/Link"; import SEO from "../components/seo"; const NewsCard = ({ ...props }) => { return (
{props.frontmatter.title} {props.frontmatter.title} {props.frontmatter.description && (
{props.frontmatter.description}
)}
); }; const NewsPage = ({ data }) => { return (
{data.allMarkdownRemark.edges.map(({ node }) => ( ))}
); }; export const query = graphql` query NewsQuery { allMarkdownRemark(sort: { fields: frontmatter___date, order: DESC }) { edges { node { id frontmatter { title date(formatString: "MMMM DD, YYYY") description author avatar { childImageSharp { gatsbyImageData(width: 40, placeholder: BLURRED, formats: [AUTO, WEBP, AVIF]) } } } fields { slug } } } } } `; export default NewsPage;