-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-blog-post-js-c6b2bc54ef6abd6a106a.js.map
1 lines (1 loc) · 6.09 KB
/
component---src-templates-blog-post-js-c6b2bc54ef6abd6a106a.js.map
1
{"version":3,"sources":["webpack:///./src/components/bio.js","webpack:///./src/templates/blog-post.js"],"names":["Bio","data","author","site","siteMetadata","style","display","marginBottom","rhythm","fixed","avatar","childImageSharp","alt","marginRight","minWidth","borderRadius","imgStyle","BlogPostTemplate","render","post","this","props","markdownRemark","siteTitle","title","pageContext","previous","next","location","frontmatter","description","excerpt","marginTop","scale","date","dangerouslySetInnerHTML","__html","html","flexWrap","justifyContent","listStyle","padding","to","fields","slug","rel","React","Component","pageQuery"],"mappings":"gLA2DeA,EA9CH,WACV,IAAMC,EAAI,OAiBFC,EAAWD,EAAKE,KAAKC,aAArBF,OACR,OACE,yBACEG,MAAO,CACLC,QAAQ,OACRC,aAAcC,YAAO,OAGvB,kBAAC,IAAD,CACEC,MAAOR,EAAKS,OAAOC,gBAAgBF,MACnCG,IAAKV,EACLG,MAAO,CACLQ,YAAaL,YAAO,IACpBD,aAAc,EACdO,SAAU,GACVC,aAAa,QAEfC,SAAU,CACRD,aAAa,SAGjB,yCACa,gCAASb,GADtB,wC,gEC5CAe,E,gLACJC,OAAA,WACE,IAAMC,EAAOC,KAAKC,MAAMpB,KAAKqB,eACvBC,EAAYH,KAAKC,MAAMpB,KAAKE,KAAKC,aAAaoB,MAF7C,EAGoBJ,KAAKC,MAAMI,YAA9BC,EAHD,EAGCA,SAAUC,EAHX,EAGWA,KAElB,OACE,kBAAC,IAAD,CAAQC,SAAUR,KAAKC,MAAMO,SAAUJ,MAAOD,GAC5C,kBAAC,IAAD,CACEC,MAAOL,EAAKU,YAAYL,MACxBM,YAAaX,EAAKU,YAAYC,aAAeX,EAAKY,UAEpD,iCACE,gCACE,wBACE1B,MAAO,CACL2B,UAAWxB,YAAO,GAClBD,aAAc,IAGfY,EAAKU,YAAYL,OAEpB,uBACEnB,MAAK,iBACA4B,aAAM,IADN,CAEH3B,QAAQ,QACRC,aAAcC,YAAO,MAGtBW,EAAKU,YAAYK,OAGtB,6BAASC,wBAAyB,CAAEC,OAAQjB,EAAKkB,QACjD,wBACEhC,MAAO,CACLE,aAAcC,YAAO,MAGzB,gCACE,kBAAC,EAAD,QAIJ,6BACE,wBACEH,MAAO,CACLC,QAAQ,OACRgC,SAAS,OACTC,eAAe,gBACfC,UAAU,OACVC,QAAS,IAGX,4BACGf,GACC,kBAAC,IAAD,CAAMgB,GAAIhB,EAASiB,OAAOC,KAAMC,IAAI,QAApC,KACKnB,EAASG,YAAYL,QAI9B,4BACGG,GACC,kBAAC,IAAD,CAAMe,GAAIf,EAAKgB,OAAOC,KAAMC,IAAI,QAC7BlB,EAAKE,YAAYL,MADpB,W,GA9DesB,IAAMC,WA4ExBC,GAFE/B,YAEO,e","file":"component---src-templates-blog-post-js-c6b2bc54ef6abd6a106a.js","sourcesContent":["/**\r\n * Bio component that queries for data\r\n * with Gatsby's useStaticQuery component\r\n *\r\n * See: https://www.gatsbyjs.org/docs/use-static-query/\r\n */\r\n\r\nimport React from \"react\"\r\nimport { useStaticQuery, graphql } from \"gatsby\"\r\nimport Image from \"gatsby-image\"\r\n\r\nimport { rhythm } from \"../utils/typography\"\r\n\r\nconst Bio = () => {\r\n const data = useStaticQuery(graphql`\r\n query BioQuery {\r\n avatar: file(absolutePath: { regex: \"/profile-pic.jpg/\" }) {\r\n childImageSharp {\r\n fixed(width: 50, height: 50) {\r\n ...GatsbyImageSharpFixed\r\n }\r\n }\r\n }\r\n site {\r\n siteMetadata {\r\n author\r\n }\r\n }\r\n }\r\n `)\r\n\r\n const { author } = data.site.siteMetadata\r\n return (\r\n <div\r\n style={{\r\n display: `flex`,\r\n marginBottom: rhythm(2.5),\r\n }}\r\n >\r\n <Image\r\n fixed={data.avatar.childImageSharp.fixed}\r\n alt={author}\r\n style={{\r\n marginRight: rhythm(1 / 2),\r\n marginBottom: 0,\r\n minWidth: 50,\r\n borderRadius: `100%`,\r\n }}\r\n imgStyle={{\r\n borderRadius: `50%`,\r\n }}\r\n />\r\n <p>\r\n Written by <strong>{author}</strong> a developer from Tucson, Arizona.\r\n </p>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Bio\r\n","import React from \"react\"\r\nimport { Link, graphql } from \"gatsby\"\r\n\r\nimport Bio from \"../components/bio\"\r\nimport Layout from \"../components/layout\"\r\nimport SEO from \"../components/seo\"\r\nimport { rhythm, scale } from \"../utils/typography\"\r\n\r\nclass BlogPostTemplate extends React.Component {\r\n render() {\r\n const post = this.props.data.markdownRemark\r\n const siteTitle = this.props.data.site.siteMetadata.title\r\n const { previous, next } = this.props.pageContext\r\n\r\n return (\r\n <Layout location={this.props.location} title={siteTitle}>\r\n <SEO\r\n title={post.frontmatter.title}\r\n description={post.frontmatter.description || post.excerpt}\r\n />\r\n <article>\r\n <header>\r\n <h1\r\n style={{\r\n marginTop: rhythm(1),\r\n marginBottom: 0,\r\n }}\r\n >\r\n {post.frontmatter.title}\r\n </h1>\r\n <p\r\n style={{\r\n ...scale(-1 / 5),\r\n display: `block`,\r\n marginBottom: rhythm(1),\r\n }}\r\n >\r\n {post.frontmatter.date}\r\n </p>\r\n </header>\r\n <section dangerouslySetInnerHTML={{ __html: post.html }} />\r\n <hr\r\n style={{\r\n marginBottom: rhythm(1),\r\n }}\r\n />\r\n <footer>\r\n <Bio />\r\n </footer>\r\n </article>\r\n\r\n <nav>\r\n <ul\r\n style={{\r\n display: `flex`,\r\n flexWrap: `wrap`,\r\n justifyContent: `space-between`,\r\n listStyle: `none`,\r\n padding: 0,\r\n }}\r\n >\r\n <li>\r\n {previous && (\r\n <Link to={previous.fields.slug} rel=\"prev\">\r\n ← {previous.frontmatter.title}\r\n </Link>\r\n )}\r\n </li>\r\n <li>\r\n {next && (\r\n <Link to={next.fields.slug} rel=\"next\">\r\n {next.frontmatter.title} →\r\n </Link>\r\n )}\r\n </li>\r\n </ul>\r\n </nav>\r\n </Layout>\r\n )\r\n }\r\n}\r\n\r\nexport default BlogPostTemplate\r\n\r\nexport const pageQuery = graphql`\r\n query BlogPostBySlug($slug: String!) {\r\n site {\r\n siteMetadata {\r\n title\r\n author\r\n }\r\n }\r\n markdownRemark(fields: { slug: { eq: $slug } }) {\r\n id\r\n excerpt(pruneLength: 160)\r\n html\r\n frontmatter {\r\n title\r\n date(formatString: \"MMMM DD, YYYY\")\r\n description\r\n }\r\n }\r\n }\r\n`\r\n"],"sourceRoot":""}