import React from 'react' import { Link, graphql, StaticQuery } from 'gatsby' import Image from '../atoms/Image' import styles from './Featured.module.scss' const query = graphql` query { allMarkdownRemark( filter: { frontmatter: { featured: { eq: true } } } sort: { fields: [fields___date], order: DESC } ) { edges { node { id frontmatter { title image { childImageSharp { ...ImageFluidThumb } } } fields { slug } } } } } ` const Featured = () => ( (
{data.allMarkdownRemark.edges.map(({ node }) => { const { title, image } = node.frontmatter const { slug } = node.fields return (
{title}

{title}

) })}
)} /> ) export default Featured