{"version":3,"sources":["webpack:///./src/templates/blog-homepage.js"],"names":["BlogIndex","categories","data","allWpPost","group","length","isHomePage","pathname","title","ogType","fluid","className","styles","contentWrapper","map","category","posts","nodes","categoryName","fieldValue","categoryHeaderFeatured","categoryHeader","categoryTitle","categoryLink","to","postsRowWrapper","post","index","featuredImage","node","localFile","childImageSharp","alt","altText","caption","tags","name","postWrapperFeature","postWrapper","xs","md","xl","key","uri","itemScope","itemType","lg","span","order","itemProp","featuredImageWrapper","style","position","top","left","width","height","display","justifyContent","alignItems","postFeatured","postRegular","postTitleFeatured","postTitle","parse","postExcerpt","excerpt","postDate","author","date"],"mappings":"2FAAA,0KAgKeA,UAlJG,SAAC,GAEZ,IACCC,EADF,EADJC,KAEwBC,UAAUC,MAElC,OAAKH,EAAWI,OAiBd,kBAAC,IAAD,CAAQC,YAAU,GAChB,kBAAC,IAAD,CACEC,SAAQ,wCACRC,MAAM,wBACNC,OAAO,YAMP,kBAAC,IAAD,CACEC,OAAK,EACLC,UAAWC,IAAOC,gBAEjBZ,EAAWa,KAAI,SAAAC,GACd,IAAMC,EAAQD,EAASE,MACjBC,EAAeH,EAASI,WAE9B,OACE,oCACE,kBAAC,IAAD,CAAKR,UAA4B,QAAjBO,EAAyBN,IAAOQ,uBAAyBR,IAAOS,gBAC9E,kBAAC,IAAD,CAAKV,UAAWC,IAAOU,eAAkC,QAAjBJ,EAAyB,SAAWA,GAC5E,kBAAC,IAAD,CAAKP,UAAWC,IAAOW,cACrB,kBAAC,OAAD,CAAMC,GAAI,cAAiC,QAAjBN,EAAyB,SAAWA,IAA9D,aAKJ,kBAAC,IAAD,CAAKP,UAAWC,IAAOa,iBACpBT,EAAMF,KAAI,SAACY,EAAMC,GAChB,GAAIA,GAA0B,QAAjBT,EAAyB,EAAI,GAAI,CAAC,IAAD,gBACtCV,EAAQkB,EAAKlB,MAEboB,EAAgB,CACpBlB,MAAK,UAAEgB,EAAKE,qBAAP,iBAAE,EAAoBC,YAAtB,iBAAE,EAA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,kBAAoBlD,IAAOmD,WACzF,kBAAC,OAAD,CAAMvC,GAAIE,EAAKiB,IAAKM,SAAS,OAC3B,0BAAMA,SAAS,YAAYe,YAAMxD,OAIvC,6BAASyC,SAAS,cAActC,UAAWC,IAAOqD,aAAeD,YAAMtC,EAAKwC,UAC5F,6BAASjB,SAAS,kBAAkBtC,UAAWC,IAAOuD,UAAtD,MAAqEzC,EAAK0C,OAAOvC,KAAKO,KAAtF,MAA+FV,EAAK2C,oBAhH9G,kBAAC,IAAD,CAAQ/D,YAAU,GAChB,kBAAC,IAAD,CACEE,MAAM,wBACNC,OAAO,YAET,kBAAC,IAAD,MACA","file":"component---src-templates-blog-homepage-js-eb96ab91dae6a76b7973.js","sourcesContent":["import React from \"react\"\nimport { Link, graphql } from \"gatsby\"\nimport Image from \"gatsby-image\"\nimport parse from \"html-react-parser\"\n\nimport Bio from \"../components/bio\"\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\n\nimport styles from \"./blog-index.module.css\"\nimport Container from 'react-bootstrap/Container'\nimport Row from 'react-bootstrap/Row'\nimport Col from 'react-bootstrap/Col'\n\nconst BlogIndex = ({\n data\n}) => {\n const categories = data.allWpPost.group\n\n if (!categories.length) {\n return (\n \n \n \n

\n No blog posts found. Add posts to your WordPress site and they'll\n appear here!\n

\n
\n )\n }\n\n return (\n \n \n\n {/* */}\n \n {/*
    */}\n \n {categories.map(category => {\n const posts = category.nodes\n const categoryName = category.fieldValue\n\n return (\n <>\n \n {categoryName === 'All' ? 'Latest' : categoryName}\n \n \n See All\n \n \n \n \n {posts.map((post, index) => {\n if (index < (categoryName === 'All' ? 7 : 6)) {\n const title = post.title\n // console.log(categoryName, index, title)\n const featuredImage = {\n fluid: post.featuredImage?.node?.localFile?.childImageSharp?.fluid,\n alt: post.featuredImage?.node?.altText || ``,\n caption: post.featuredImage?.node?.caption || '',\n }\n const tag = post.tags.nodes.length > 0 ? post.tags.nodes[0].name : '';\n\n return (\n \n {/*
  1. */}\n \n \n
    \n {/* if we have a featured image for this post let's display it */}\n {featuredImage?.fluid && (\n \n )}\n {featuredImage.caption && (\n
    {featuredImage.caption}
    \n )}\n
    \n \n \n
    \n

    \n \n {parse(title)}\n \n

    \n
    \n
    {parse(post.excerpt)}
    \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    By {post.author.node.name} ยท {post.date}
    \n \n \n {/*
  2. */}\n \n )\n }\n })}\n
    \n \n )\n })}\n \n {/*
*/}\n \n\n {/* {previousPagePath && (\n <>\n Previous page\n
\n \n )}\n {nextPagePath && Next page} */}\n
\n )\n}\n\nexport default BlogIndex\n\nexport const pageQuery = graphql`\n query WordPressPostArchive {\n allWpPost(\n sort: { fields: [date], order: DESC }\n ) {\n group(field: categories___nodes___name) {\n fieldValue\n nodes {\n\t\t\t\t\tauthor {\n\t\t\t\t\t\tnode {\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n excerpt\n uri\n date(formatString: \"MMMM DD, YYYY\")\n title\n excerpt\n featuredImage {\n node {\n altText\n # caption\n localFile {\n childImageSharp {\n fluid(maxWidth: 1000, quality: 100) {\n ...GatsbyImageSharpFluid_tracedSVG\n }\n }\n }\n }\n }\n tags {\n nodes {\n name\n }\n }\n }\n }\n }\n }\n`\n"],"sourceRoot":""}