-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-tsx-b7aedc90c2e423904265.js.map
1 lines (1 loc) · 2.29 KB
/
component---src-pages-index-tsx-b7aedc90c2e423904265.js.map
1
{"version":3,"file":"component---src-pages-index-tsx-b7aedc90c2e423904265.js","mappings":"mJAkCA,IAtBe,SAAC,GAAiC,IAA/BA,EAA+B,EAA/BA,SAChB,OACE,gCACI,+BAGA,wBAAMC,MAAO,CAACC,UAAW,GAAIC,QAAS,KAAMH,GAC5C,0BACEC,MAAO,CACLG,OAAQ,KAGV,qBAAGC,KAAK,KAAR,W,oDCQV,UAXkB,SAAC,GAAD,IAAEC,EAAF,EAAEA,KAAF,OAChB,gBAAC,IAAD,KACGA,EAAKC,kBAAkBC,MAAMC,UAAUC,KAAI,SAACC,EAAKC,GAChD,OAAO,uBAAKC,IAAKD,GACf,qBAAGP,KAAI,UAAYM,EAAKG,YAAYC,GAAMC,wBAAyB,CAACC,OAAQN,EAAKG,YAAYI","sources":["webpack://gatsby-starter-default/./src/components/layout.tsx","webpack://gatsby-starter-default/./src/pages/index.tsx"],"sourcesContent":["/**\n * Layout component that queries for data\n * with Gatsby's useStaticQuery component\n *\n * See: https://www.gatsbyjs.com/docs/use-static-query/\n */\n\nimport * as React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { useStaticQuery, graphql } from \"gatsby\"\nimport \"./layout.css\"\n\nconst Layout = ({ children }:{children: any}) => {\n return (\n <>\n <header>\n\n </header>\n <main style={{marginTop: 16, padding: 24}}>{children}</main>\n <footer\n style={{\n margin: 24,\n }}\n >\n <a href=\"/\">Top</a>\n </footer>\n </>\n )\n}\n\nLayout.propTypes = {\n children: PropTypes.node.isRequired,\n}\n\nexport default Layout\n","import * as React from \"react\"\nimport { graphql } from \"gatsby\"\nimport Layout from \"../components/layout\"\nimport \"prismjs/themes/prism-dark.css\"\nimport \"../components/codeblock.css\"\n\nexport const query = graphql`\n query MyQuery {\n allMarkdownRemark(sort: { order: ASC, fields: [frontmatter___date] }) {\n nodes {\n id\n frontmatter {\n date\n id\n title\n }\n }\n }\n }\n`\n\nconst IndexPage = ({data}) => (\n <Layout>\n {data.allMarkdownRemark.nodes.reverse().map((node,i)=>{\n return <div key={i}>\n <a href={`/diary/${node.frontmatter.id}`} dangerouslySetInnerHTML={{__html: node.frontmatter.title}}/>\n </div>\n })}\n \n </Layout>\n)\n\nexport default IndexPage"],"names":["children","style","marginTop","padding","margin","href","data","allMarkdownRemark","nodes","reverse","map","node","i","key","frontmatter","id","dangerouslySetInnerHTML","__html","title"],"sourceRoot":""}