{"version":3,"sources":["webpack://gatsby-starter-ghost/./src/templates/post.js"],"names":["data","location","post","ghostPost","readingTime","readingTimeHelper","encodedUrl","encodeURIComponent","url","replace","encodedTextForShare","custom_excerpt","title","encodedTags","String","tags","map","tag","name","concat","type","codeinjection_styles","className","feature_image","src","alt","target","href","id","authors","author","key","slug","profile_image","height","width","nameIdx","length","dateTime","published_at","published_at_pretty","dangerouslySetInnerHTML","__html","html"],"mappings":"6LAkKA,UAnJa,SAAC,GAAwB,IAAD,QAArBA,EAAqB,EAArBA,KAAMC,EAAe,EAAfA,SACZC,EAAOF,EAAKG,UACZC,GAAcC,iBAAkBH,GAEhCI,EAAaC,mBAAmBL,EAAKM,IAAIC,QAAQ,QAAS,SAC1DC,EAAsBH,mBAAmBL,EAAKS,eAAiBT,EAAKS,eAAiBT,EAAKU,OAC1FC,EAAcC,QAAQZ,EAAKa,MAAQ,IAAIC,KAAI,SAACC,GAAD,OAASA,EAAIC,QAAMC,OAAO,CAAC,OAAQ,kBAEpF,OACI,gCACI,gBAAC,IAAD,CAAUnB,KAAMA,EAAMC,SAAUA,EAAUmB,KAAK,YAC/C,gBAAC,IAAD,KACI,yBAAOA,KAAK,YAAZ,GAA2BlB,EAAKmB,uBAEpC,gBAAC,KAAD,KACI,uBAAKC,UAAU,aACX,2BAASA,UAAU,WACf,sBAAIA,UAAU,iBAAiBpB,EAAKU,OAEnCV,EAAKS,eACF,qBAAGW,UAAU,mBACRpB,EAAKS,gBAEV,KAEHT,EAAKqB,cACF,0BAAQD,UAAU,sBACd,uBACIE,IAAKtB,EAAKqB,cACVE,IAAKvB,EAAKU,SAGlB,KAEJ,2BAASU,UAAU,qBACf,uBAAKA,UAAU,uBACX,0BACI,0BACI,qBACII,OAAO,SACPC,KAAI,qDAAuDrB,EAAvD,SAA0EI,EAA1E,QAAqGJ,EAArG,aAA4HO,EAChIS,UAAU,MACVM,GAAG,KAEH,0BACA,wBAAMN,UAAU,QAAQM,GAAG,KAA3B,aAOhB,uBAAKN,UAAU,kBACX,2BAASA,UAAU,0BACf,sBAAIA,UAAU,eAAd,UACKpB,EAAK2B,eADV,iBACK,EAAcb,WADnB,aACK,UAAoB,SAACc,GAAD,OACjB,sBACIR,UAAU,mBACVS,IAAKD,EAAOE,MAEXF,EAAOG,cACJ,qBACIN,KAAMG,EAAOtB,IACbc,UAAU,iBAEV,uBACIA,UAAU,uBACVE,IACIM,EAAOG,cAEXR,IAAKK,EAAOZ,QAIpB,qBACIS,KAAMG,EAAOtB,IACbc,UAAU,sCAEV,uBACIA,UAAU,uBACVE,IAAI,2BACJU,OAAO,KACPC,MAAM,aAQ9B,uBAAKb,UAAU,uBACX,sBAAIA,UAAU,eAAd,UACKpB,EAAK2B,eADV,iBACK,EAAcb,WADnB,aACK,UACG,WAEIoB,GAFJ,UACMlB,YADN,MACa,WADb,SAII,UAAAhB,EAAK2B,eAAL,SAAcQ,QACdD,EACIlC,EAAK2B,QAAQQ,OAAS,EACjBnB,EAHT,KAIMA,MAGlB,uBAAKI,UAAU,uBACX,wBACIA,UAAU,mBACVgB,SAAUpC,EAAKqC,cAEdrC,EAAKsC,qBAEV,wBAAMlB,UAAU,uBACZ,wBAAMA,UAAU,QAAhB,KAEQ,IACPlB,OAQrB,2BACIkB,UAAU,qCACVmB,wBAAyB,CAAEC,OAAQxC,EAAKyC","file":"component---src-templates-post-js-7a85fd2580b8eea387c5.js","sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { graphql } from 'gatsby'\nimport { Helmet } from 'react-helmet'\n\nimport { Layout } from '../components/common'\nimport { MetaData } from '../components/common/meta'\nimport { readingTime as readingTimeHelper } from '@tryghost/helpers'\n\n/**\n* Single post view (/:slug)\n*\n* This file renders a single post and loads all the content.\n*\n*/\nconst Post = ({ data, location }) => {\n const post = data.ghostPost\n const readingTime = readingTimeHelper(post)\n\n const encodedUrl = encodeURIComponent(post.url.replace('admin', 'blog'))\n const encodedTextForShare = encodeURIComponent(post.custom_excerpt ? post.custom_excerpt : post.title)\n const encodedTags = String((post.tags || []).map((tag) => tag.name).concat(['qbfs', 'phillysports']))\n\n return (\n <>\n \n \n \n \n \n
\n
\n

{post.title}

\n\n {post.custom_excerpt ? (\n

\n {post.custom_excerpt}\n

\n ) : null}\n\n {post.feature_image ? (\n
\n \n
\n ) : null}\n\n
\n
\n
    \n
  • \n \n \n \n Tweet\n \n \n
  • \n
\n
\n
\n
\n
    \n {post.authors?.map?.((author) => (\n \n {author.profile_image ? (\n \n \n \n ) : (\n \n \n \n )}\n \n ))}\n
\n\n
\n

\n {post.authors?.map?.(\n (\n { name = \"Not Sure\" },\n nameIdx\n ) =>\n post.authors?.length &&\n nameIdx <\n post.authors.length - 1\n ? `${name}, `\n : name\n )}\n

\n
\n \n {post.published_at_pretty}\n \n \n \n •\n {\" \"}\n {readingTime}\n \n
\n
\n
\n
\n\n {/* The main post content */}\n \n
\n
\n
\n
\n \n );\n}\n\nPost.propTypes = {\n data: PropTypes.shape({\n ghostPost: PropTypes.shape({\n codeinjection_styles: PropTypes.object,\n title: PropTypes.string.isRequired,\n html: PropTypes.string.isRequired,\n feature_image: PropTypes.string,\n }).isRequired,\n }).isRequired,\n location: PropTypes.object.isRequired,\n}\n\nexport default Post\n\nexport const postQuery = graphql`\n query($slug: String!) {\n ghostPost(slug: { eq: $slug }) {\n ...GhostPostFields\n }\n }\n`\n"],"sourceRoot":""}