-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-year-js-0397176bed9177a29771.js.map
1 lines (1 loc) · 2.09 KB
/
component---src-templates-year-js-0397176bed9177a29771.js.map
1
{"version":3,"file":"component---src-templates-year-js-0397176bed9177a29771.js","mappings":"kJAIA,mBAAe,OAAGA,EAAH,EAAGA,KAAH,OACb,gBAAC,IAAD,KACE,2BACGA,EAAKC,kBAAkBC,MAAMC,KAAI,gBAAGC,EAAH,EAAGA,KAAH,OAChC,uBAAKC,IAAKD,EAAKE,IACb,gBAAC,KAAD,CACEC,GAAIH,EAAKI,OAAOC,KAChBC,MAAO,CACLC,eAAe,OACfC,MAAM,YAGR,sBACEF,MAAO,CACLG,aAAa,MACbC,SAAS,SAGVV,EAAKW,YAAYC,MAAO,IACzB,wBACEN,MAAO,CACLE,MAAM,SAFV,KAKKR,EAAKW,YAAYE,OAGxB,yBAAIb,EAAKc","sources":["webpack://docunext/./src/templates/year.js"],"sourcesContent":["import React from \"react\"\nimport { Link, graphql } from \"gatsby\"\nimport Layout from \"../components/layout\"\n\nexport default ({ data }) => (\n <Layout>\n <div>\n {data.allMarkdownRemark.edges.map(({ node }) => (\n <div key={node.id}>\n <Link\n to={node.fields.slug}\n style={{\n textDecoration: `none`,\n color: `inherit`,\n }}\n >\n <h3\n style={{\n marginBottom: `4px`,\n fontSize: `18px`,\n }}\n >\n {node.frontmatter.title}{\" \"}\n <span\n style={{\n color: `#bbb`,\n }}\n >\n — {node.frontmatter.date}\n </span>\n </h3>\n <p>{node.excerpt}</p>\n </Link>\n </div>\n ))}\n </div>\n </Layout>\n)\n\nexport const query = graphql`\n query($dir: String!) {\n allMarkdownRemark(\n filter: { fileAbsolutePath: { regex: $dir } }\n sort: { fields: [frontmatter___date], order: DESC }\n ) {\n totalCount\n edges {\n node {\n id\n fields {\n slug\n }\n frontmatter {\n title\n date(formatString: \"DD MMMM, YYYY\")\n }\n excerpt\n }\n }\n }\n }\n`\n"],"names":["data","allMarkdownRemark","edges","map","node","key","id","to","fields","slug","style","textDecoration","color","marginBottom","fontSize","frontmatter","title","date","excerpt"],"sourceRoot":""}