-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcomponent---src-templates-blog-post-js-34d331e4d31b68a2e715.js.map
1 lines (1 loc) · 5.37 KB
/
component---src-templates-blog-post-js-34d331e4d31b68a2e715.js.map
1
{"version":3,"sources":["webpack:///./src/templates/blog-post.module.css","webpack:///./src/templates/blog-post.js"],"names":["module","exports","BlogPostTemplate","render","post","this","props","data","markdownRemark","pageContext","previous","next","title","frontmatter","description","excerpt","className","blogStyles","articleTD","duration","date","imageCont","featuredImage","childImageSharp","fluid","alt","src","caption","sectionCont","dangerouslySetInnerHTML","__html","html","nav","previousArticle","to","fields","slug","rel","nextArticle","React","Component"],"mappings":"+EACAA,EAAOC,QAAU,CAAC,UAAY,qCAAqC,QAAU,mCAAmC,YAAc,uCAAuC,UAAY,qCAAqC,IAAM,+BAA+B,gBAAkB,2CAA2C,YAAc,yC,4JCOhUC,E,kGACFC,OAAA,WACE,IAAMC,EAAOC,KAAKC,MAAMC,KAAKC,eAC7B,EAA2BH,KAAKC,MAAMG,YAA9BC,EAAR,EAAQA,SAAUC,EAAlB,EAAkBA,KAElB,OACE,kBAAC,IAAD,KACI,kBAAC,IAAD,CAAMC,MAAOR,EAAKS,YAAYD,MAC1BE,YAAaV,EAAKS,YAAYC,aAAeV,EAAKW,UAEtD,iCAEI,yBAAKC,UAAWC,IAAWC,WACvB,4BACKd,EAAKS,YAAYD,OAEtB,4BAAKR,EAAKS,YAAYC,aACtB,+BAAKV,EAAKS,YAAYM,SAAtB,UAAiDf,EAAKS,YAAYO,KAAlE,KAEA,yBAAKJ,UAAWC,IAAWI,WACpBjB,EAAKS,YAAYS,eAAmBlB,EAAKS,YAAYS,cAAcC,gBAChE,kBAAC,IAAD,CAAKC,MAAOpB,EAAKS,YAAYS,cAAcC,gBAAgBC,MAC7DC,IAAK,aACH,yBAAKC,IAAKtB,EAAKS,YAAYS,cAAeG,IAAK,aAErD,2BAAIrB,EAAKS,YAAYc,WAI7B,6BAASX,UAAWC,IAAWW,YAAaC,wBAAyB,CAAEC,OAAQ1B,EAAK2B,SAKxF,yBAAKf,UAAWC,IAAWe,KACvB,4BAEI,wBAAIhB,UAAWC,IAAWgB,iBACrBvB,GACG,6BACI,kCACA,kBAAC,OAAD,CAAMwB,GAAKxB,EAASyB,OAAOC,KAAMC,IAAI,QAChC3B,EAASG,YAAYD,SAMtC,wBAAII,UAAWC,IAAWqB,aACrB3B,GACG,6BACI,kCACA,kBAAC,OAAD,CAAMuB,GAAKvB,EAAKwB,OAAOC,KAAMC,IAAI,QAC5B1B,EAAKE,YAAYD,a,GArDvB2B,IAAMC,WAmEpBtC","file":"component---src-templates-blog-post-js-34d331e4d31b68a2e715.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"articleTD\":\"blog-post-module--articleTD--3WVNl\",\"imgCont\":\"blog-post-module--imgCont--17dwl\",\"sectionCont\":\"blog-post-module--sectionCont--1UD4c\",\"imageCont\":\"blog-post-module--imageCont--3fGXY\",\"nav\":\"blog-post-module--nav--2W5fW\",\"previousArticle\":\"blog-post-module--previousArticle--37SvQ\",\"nextArticle\":\"blog-post-module--nextArticle--owCPA\"};","import React from 'react'\nimport { Link, graphql } from \"gatsby\"\n\nimport Container from '../components/container'\nimport Head from '../components/head'\nimport Img from 'gatsby-image'\nimport blogStyles from './blog-post.module.css'\n\nclass BlogPostTemplate extends React.Component {\n render() {\n const post = this.props.data.markdownRemark\n const { previous, next } = this.props.pageContext\n \n return (\n <Container>\n <Head title={post.frontmatter.title}\n description={post.frontmatter.description || post.excerpt}/>\n\n <article>\n\n <div className={blogStyles.articleTD}>\n <h2>\n {post.frontmatter.title}\n </h2>\n <h4>{post.frontmatter.description}</h4>\n <p> {post.frontmatter.duration} | {post.frontmatter.date} </p>\n \n <div className={blogStyles.imageCont}>\n {!!post.frontmatter.featuredImage && !!post.frontmatter.featuredImage.childImageSharp\n ? <Img fluid={post.frontmatter.featuredImage.childImageSharp.fluid}\n alt={\"Featured\"} />\n : <img src={post.frontmatter.featuredImage} alt={\"Featured\"} />\n }\n <p>{post.frontmatter.caption}</p>\n </div>\n </div>\n\n <section className={blogStyles.sectionCont} dangerouslySetInnerHTML={{ __html: post.html }} />\n\n </article>\n\n\n <div className={blogStyles.nav}>\n <ul>\n\n <li className={blogStyles.previousArticle}>\n {previous && (\n <div>\n <p> ← </p>\n <Link to={ previous.fields.slug} rel=\"prev\">\n {previous.frontmatter.title}\n </Link>\n </div>\n )}\n </li>\n\n <li className={blogStyles.nextArticle}>\n {next && (\n <div>\n <p> → </p>\n <Link to={ next.fields.slug} rel=\"next\">\n {next.frontmatter.title}\n </Link>\n </div>\n )}\n </li>\n\n </ul>\n </div>\n\n </Container>\n )\n }\n }\n \n export default BlogPostTemplate\n \n export const pageQuery = graphql`\n query BlogPostBySlug($slug: String!) {\n markdownRemark(fields: { slug: { eq: $slug } }) {\n id\n excerpt(pruneLength: 160)\n html\n frontmatter {\n title\n date(formatString: \"MMMM DD, YYYY\")\n description\n duration\n caption\n featuredImage {\n childImageSharp {\n fluid(maxWidth: 1080) {\n ...GatsbyImageSharpFluid\n }\n }\n }\n }\n }\n }\n `"],"sourceRoot":""}