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,EAAY5D,MACzBc,EAAO0B,EAAKqB,OAAO/C,KAAO0B,EAAKqB,OAAO/C,KAA/B,IAA0C0B,EAAK1B,KAA/C,IACR,OACJ,gBAAC,IAAD,CACEQ,IAAKkB,EAAKsB,GACVhD,KAAMA,EACNd,MAAOA,EACPe,KAAM6C,EAAY7C,KAClBC,YAAa4C,EAAY5C,YACzBC,KAAM2C,EAAY3C,MAAQ,GAC1BC,MAAOsB,EAAKqB,OAAOE","sources":["webpack://gatsby-starter-blog/./src/components/layout.js","webpack://gatsby-starter-blog/./src/components/post-card.js","webpack://gatsby-starter-blog/./src/components/tag.js","webpack://gatsby-starter-blog/./src/templates/tags.js"],"sourcesContent":["import * as React from \"react\"\nimport { Link } from \"gatsby\"\n\nconst Layout = ({ location, title, subtitle, children }) => {\n const rootPath = `${__PATH_PREFIX__}/`\n const isRootPath = location.pathname === rootPath\n let header\n\n header = (\n \n\t\t\t

\n {title} | {subtitle}\n

\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tAbout\n\t\t\t\n\t\t
\n )\n\n return (\n
\n
{header}
\n
{children}
\n \n
\n )\n}\n\nexport default Layout\n","import React from \"react\"\n\nimport { Link } from \"gatsby\";\nimport Tag from \"../components/tag\"\n\nimport \"devicon/devicon.min.css\";\n\nconst PostCard = (props) => {\n const { slug, title, date, description, tags, devTo } = props\n\t\tconst publishedOnDevTo = (devTo) => {\n\t\t\treturn devTo ?\n\t\t\t\"on DEV.to\"\n\t\t\t: null\n\t\t}\n\n return (\n\t\t\t
  • \n\t\t\t\t
    \n\t\t\t\t\t{tags.map((tag, i) => (\n\t\t\t\t\t\t\n\t\t\t\t\t))}\n\t\t\t\t
    \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t{date} {publishedOnDevTo(devTo)}\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
  • \n )\n}\n\nexport default PostCard\n","import React from \"react\"\n\nimport { Link } from \"gatsby\";\n\nimport \"devicon/devicon.min.css\";\n\nconst tagNames = {\n\tcplusplus: \"C++\",\n\tcsharp: \"C#\",\n\tcss: \"CSS\",\n\tdocs: \"Docs\",\n\tgamedev: \"Game Dev\",\n\tgatsby: \"Gatsby\",\n\thtml: \"HTML\",\n\tjavascript: \"JavaScript\",\n\tn64: \"N64\",\n\tnode: \"Node.js\",\n\tpython: \"Python\",\n\trails: \"Rails\",\n\twebdev: \"Web Dev\",\n\treact: \"React\",\n\ttutorials: \"Tutorials\",\n\truby: \"Ruby\",\n\tapi: \"API\",\n}\n\nconst Tag = (props) => {\n const { name } = props\n\t\tlet deviconLabel = name;\n\t\t// Change DEV tags to Devicon icon names if they don't match\n\t\tif (name === \"node\") deviconLabel = \"nodejs\"\n\n return (\n \n \n {tagNames[name]}\n\t\t\t\t\t\t\t\t\n \n \n )\n}\n\nexport default Tag\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n// Components\nimport { Link, graphql } from \"gatsby\"\nimport Layout from \"../components/layout\"\nimport PostCard from \"../components/post-card\"\n\nconst Tags = ({ location, pageContext, data }) => {\n const siteTitle = data.site.siteMetadata?.title || `Title`\n\tconst subtitle = data.site.siteMetadata.subtitle\n const { tag } = pageContext\n let { edges } = data.allMarkdownRemark\n\tconst posts = edges.concat(data.allPosts.edges)\n const tagHeader = `Posts tagged with \"${tag}\"`\n return (\n\t\t\n

    {tagHeader}

    \n\t\t\tAll tags\n
      \n {posts.map(({ node }) => {\n\t\t\t\t\tconst frontmatter = node.frontmatter || node\n const title = frontmatter.title\n\t\t\t\t\tconst slug = node.fields.slug ? node.fields.slug : `/${node.slug}/`\n return (\n\t\t\t\t\t\t\n )\n })}\n
    \n
    \n )\n}\n\nTags.propTypes = {\n pageContext: PropTypes.shape({\n tag: PropTypes.string.isRequired,\n }),\n data: PropTypes.shape({\n allMarkdownRemark: PropTypes.shape({\n totalCount: PropTypes.number.isRequired,\n edges: PropTypes.arrayOf(\n PropTypes.shape({\n node: PropTypes.shape({\n frontmatter: PropTypes.shape({\n title: PropTypes.string.isRequired,\n }),\n fields: PropTypes.shape({\n slug: PropTypes.string.isRequired,\n }),\n }),\n }).isRequired\n ),\n }),\n }),\n}\n\nexport default Tags\nexport const pageQuery = graphql`\n query($tag: String) {\n\t\tsite {\n siteMetadata {\n title\n\t\t\t\tsubtitle\n }\n }\n\t\tallMarkdownRemark(\n limit: 2000\n sort: { fields: [frontmatter___date], order: DESC }\n filter: { frontmatter: { tags: { in: [$tag] }, published: { eq: true } } }\n ) {\n totalCount\n edges {\n node {\n\t\t\t\t\tid\n fields {\n slug\n }\n frontmatter {\n\t\t\t\t\t\tdate(formatString: \"MMMM DD, YYYY\")\n\t title\n\t description\n\t\t\t\t\t\ttags\n }\n }\n }\n }\n\t\tallPosts(\n\t\t\tlimit: 2000\n\t\t\tfilter: { tag_list: { in: [$tag] } }\n\t\t) {\n\t\t\tedges {\n\t\t\t\tnode {\n\t\t\t\t\tid\n\t\t\t\t\ttitle\n\t\t\t\t\tdescription\n\t\t\t\t\tdate: published_at(formatString: \"MMMM DD, YYYY\")\n\t\t\t\t\ttags: tag_list\n\t\t\t\t\tslug\n\t\t\t\t\tfields {\n\t\t\t\t\t\tdev_to\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\n`\n"],"names":["header","location","title","subtitle","children","isRootPath","pathname","className","Link","to","href","target","rel","Date","getFullYear","props","slug","date","description","tags","devTo","map","tag","i","key","name","itemProp","itemScope","itemType","publishedOnDevTo","dangerouslySetInnerHTML","__html","tagNames","cplusplus","csharp","css","docs","gamedev","gatsby","html","javascript","n64","node","python","rails","webdev","react","tutorials","ruby","api","deviconLabel","pageContext","data","siteTitle","site","siteMetadata","posts","allMarkdownRemark","edges","concat","allPosts","tagHeader","frontmatter","fields","id","dev_to"],"sourceRoot":""}