young-blog

๐Ÿ˜‡๐Ÿ‘ฟ

Category Test1

๐Ÿ—“๏ธJuly 02, 2020

hi

์†Œ๊ฐœ

ใ…ใ„ดใ…‡ใ„นใ…ใ…‡ใ„ดใ„น
hi dasklfjdaslkfjalsdkfj
hi dasklfjdaslkfjalsdkfj
hi dasklfjdaslkfjalsdkfj
hi dasklfjdaslkfjalsdkfj
hi dasklfjdaslkfjalsdkfj
hi dasklfjdaslkfjalsdkfj

import React from 'react';
import { graphql } from 'gatsby';
import { Layout, PostSummaryList } from '../components';
import { PostSummariesData } from '../types';

type IndexPageProps = {
  data: PostSummariesData;
};

const IndexPage = ({ data }: IndexPageProps) => {
  const { allMarkdownRemark } = data;
  const { edges: summaries } = allMarkdownRemark;
  return (
    <Layout>
      <PostSummaryList {...{ summaries }} />
    </Layout>
  );
};

export default IndexPage;

export const pageQuery = graphql`
  query PostSummaries {
    allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {
      edges {
        node {
          id
          excerpt(pruneLength: 200, truncate: true)
          fields {
            slug
          }
          frontmatter {
            date(formatString: "MMMM DD, YYYY")
            title
          }
        }
      }
    }
  }
`;

Test2