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ARC,EAAQ,EAARA,KAC3BC,EAAWD,EAAK9B,cAAcC,MAAM,GACpC+B,EAAQF,EAAKG,UAEnB,OACE,gBAAC,IAAD,CAAQlC,UAAU,YACd,gBAAC,KAAD,CAAKc,KAAMkB,IACjB,uBAAKhC,UAAU,gBACd,gBAAC,IAAD,CAAMmC,OAAQ,CAACC,OAAS,WAEzB,gBAAC,IAAD,CAAcvC,eAAgBmC,IAE9B,2BAAShC,UAAU,YAEX,0BAAKgC,EAASpB,MAEpB,uBAAKZ,UAAU,aAETiC,MAAAA,GAAA,UAAAA,EAAO/B,aAAP,eAAcC,SAAU8B,EAAM/B,MAAME,KAAI,SAACU,EAAMR,GAAO,IAAD,IAE3D,OADe,UAAAQ,EAAKU,kBAAL,mBAAiBtB,aAAjB,eAAwBC,SAAUW,EAAKU,WAAWtB,MAAMmC,MAAK,SAAAC,GAAC,OAAKA,EAAE1B,OAASoB,EAASpB,QACtF,gBAAC,IAAD,CAAaJ,IAAG,OAASF,EAAKQ,KAAMA,IAAW","sources":["webpack://landbay/./src/components/CategoryList.js","webpack://landbay/./src/components/PostPreview.js","webpack://landbay/./src/templates/category.js"],"sourcesContent":["import React from \"react\";\nimport { useStaticQuery, graphql, Link } from \"gatsby\"\n\n/**\n * Category list. Appears on blog homepage and blog category archives.\n */\nexport default function CategoryList({activeCategory}) {\n\n //query for blog categories\n const query = useStaticQuery(graphql`\n query {\n allWpCategory(\n sort: {fields: category___order}\n ) {\n nodes {\n name\n\t\t uri\n }\n }\n\t wpPage(isPostsPage: {eq: true}) {\n\t uri\n\t }\n }\n `)\n\n return(\n\t\n )\n}\n\n","import React from 'react';\nimport { graphql, Link } from \"gatsby\"\nimport { GatsbyImage, getImage } from \"gatsby-plugin-image\"\n\nexport default function PostPreview({post}) {\n\t\n return (\n\t
\n\t\t\n\t\t {\n\t\t\tpost.featuredImage?.node\n\t\t\t? \n\t\t\t: null\n\t\t }\n\n\t\t
\n\t\t\t {\n\t\t\t\tpost.categories?.nodes?.length\n\t\t\t\t?

{Array.prototype.map.call(post.categories.nodes, function(item) { return item.name; }).join(\", \")}

\n\t\t\t\t: null\n\t\t\t }\t\t\t\t\t\n\t\t\t

{post.title}

\n\t\t\t

{post.date}

\n\t\t
\n\t\t\n\t
\n );\n}\n\nexport const PostFragment = graphql`\n\tfragment PostFragment on WpPost {\n\t categories {\n nodes {\n name\n }\n }\n title\n link\n date(formatString: \"D MMMM YYYY\")\n featuredImage {\n node {\n localFile {\n\t\t childImageSharp {\n\t gatsbyImageData(\n\t\t\t\tsizes: \"(min-width: 1280px) 405px, (min-width: 768px) 360px, calc(100vw - 64)\",\n\t\t\t\tbreakpoints: [622, 720, 810, 1232]\n\t )\n\t }\n }\n }\n }\n\t}\n`","import React from \"react\"\nimport { graphql } from \"gatsby\"\nimport Layout from '../components/Layout' \nimport Hero from '../components/widgets/Hero' \nimport PostPreview from '../components/PostPreview'\nimport CategoryList from '../components/CategoryList'\nimport Seo from 'gatsby-plugin-wpgraphql-seo';\n\n/*\n * Category index \n */\nexport default function Category({ data }) {\n const category = data.allWpCategory.nodes[0]\n const posts = data.allWpPost;\n \n return (\n \t\n \n\t\t
\n\t\t\t\n\t\t
\n\t\t\n\t\t\n\t\t
\n\t\t \n

{category.name}

\n\n\t\t
\n\t\t\t\t\n \t{posts?.nodes?.length && posts.nodes.map((post, i) => {\t\n\t\t\t\tconst exists = post.categories?.nodes?.length && post.categories.nodes.some(c => (c.name === category.name));\t\n\t\t\t\treturn exists ? : null;\n\t })}\n\t\t\t\t\n\t\t
\n\n\t\t
\n
\n )\n}\nexport const query = graphql`\n query($id: String!) {\n allWpCategory(filter: { id: { eq: $id } }) {\n nodes {\n name\n\t\tseo {\n\t title\n\t metaDesc\n\t focuskw\n\t metaKeywords\n\t metaRobotsNoindex\n\t metaRobotsNofollow\n\t opengraphTitle\n\t opengraphDescription\n\t opengraphImage {\n\t altText\n\t sourceUrl\n\t srcSet\n\t localFile {\n\t publicURL\n\t }\n\t }\n\t twitterTitle\n\t twitterDescription\n\t twitterImage {\n\t altText\n\t sourceUrl\n\t srcSet\n\t localFile {\n\t publicURL\n\t }\n\t }\n\t canonical\n\t cornerstone\n\t schema {\n\t \n\t raw\n\t }\n\t }\n }\n }\n\tallWpPost(\n sort: { fields: [date], order: DESC }\n ) {\n nodes {\n\t\t...PostFragment\n }\n }\n }\n`\n"],"names":["CategoryList","activeCategory","query","useStaticQuery","className","allWpCategory","nodes","length","map","item","i","wpPage","key","Link","to","uri","name","PostPreview","post","link","featuredImage","node","G","image","getImage","localFile","alt","title","categories","Array","prototype","call","join","date","Category","data","category","posts","allWpPost","widget","layout","some","c"],"sourceRoot":""}