-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-tags-js-5f8b1e8c81cdda6f7009.js.map
1 lines (1 loc) · 1.82 KB
/
component---src-pages-tags-js-5f8b1e8c81cdda6f7009.js.map
1
{"version":3,"sources":["webpack://gatsby-starter-blog/./src/pages/tags.js"],"names":["allTags","data","allMarkdownRemark","group","title","description","keywords","map","tag","fieldValue","className","key","Link","to","totalCount"],"mappings":"qMA8BA,UAtBiB,SAAC,GAAc,IACxBA,EADuB,EAAXC,KACGC,kBAAkBC,MAEvC,OACE,gBAAC,IAAD,KACE,gBAAC,IAAD,CAAKC,MAAM,OAAOC,YAAY,OAAOC,SAAUN,EAAQO,KAAI,SAAAC,GAAG,OAAKA,EAAIC,gBACvE,uBAAKC,UAAU,WACb,kCACA,sBAAIA,UAAU,aACXV,EAAQO,KAAI,SAAAC,GAAG,OACd,sBAAIG,IAAKH,EAAIC,YACX,gBAAC,EAAAG,KAAD,CAAMC,GAAE,SAAW,IAAUL,EAAIC,YAAzB,IAAyCC,UAAU,OAA3D,IACIF,EAAIC,WADR,KACsBD,EAAIM,WAD1B","file":"component---src-pages-tags-js-5f8b1e8c81cdda6f7009.js","sourcesContent":["// https://www.gatsbyjs.org/docs/adding-tags-and-categories-to-blog-posts/#add-tags-to-your-markdown-files\n\nimport React from 'react';\nimport { Link, graphql } from 'gatsby';\nimport SEO from '../components/seo'\nimport { kebabCase } from 'lodash';\n\nimport Layout from '../components/layout';\nconst TagsPage = ({ data }) => {\n const allTags = data.allMarkdownRemark.group;\n\n return (\n <Layout>\n <SEO title=\"Tags\" description=\"Tags\" keywords={allTags.map(tag => (tag.fieldValue))} />\n <div className=\"contact\">\n <h1>Tags</h1>\n <ul className=\"post-tags\">\n {allTags.map(tag => (\n <li key={tag.fieldValue}>\n <Link to={`/tags/${kebabCase(tag.fieldValue)}/`} className=\"tag\">\n #{tag.fieldValue} ({tag.totalCount})\n </Link>\n </li>\n ))}\n </ul>\n </div>\n </Layout>\n );\n};\n\nexport default TagsPage;\n\nexport const pageQuery = graphql`\n query {\n allMarkdownRemark(limit: 2000) {\n group(field: frontmatter___tags) {\n fieldValue\n totalCount\n }\n }\n }\n`;\n"],"sourceRoot":""}