-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-tags-template-tags-template-tsx-c4ce294cbd69fb69c08d.js.map
1 lines (1 loc) · 1.96 KB
/
component---src-templates-tags-template-tags-template-tsx-c4ce294cbd69fb69c08d.js.map
1
{"version":3,"file":"component---src-templates-tags-template-tags-template-tsx-c4ce294cbd69fb69c08d.js","mappings":"+PAWA,MAqBaA,EAAiBA,KAC5B,MAAM,MAAEC,EAAK,SAAEC,IAAaC,EAAAA,EAAAA,MACtBC,EAAS,UAAaH,EAE5B,OAAOI,EAAAA,cAACC,EAAAA,EAAI,CAACL,MAAOG,EAAWG,YAAaL,GAAY,EAG1D,UA5B+BM,KAC7B,MAAMC,GAAOC,EAAAA,EAAAA,MAEb,OACEL,EAAAA,cAACM,EAAAA,EAAM,KACLN,EAAAA,cAACO,EAAAA,EAAO,MACRP,EAAAA,cAACQ,EAAAA,EAAI,CAACZ,MAAM,QACVI,EAAAA,cAAA,UACGI,EAAKK,KAAKC,GACTV,EAAAA,cAAA,MAAIW,IAAKD,EAAIE,YACXZ,EAAAA,cAACa,EAAAA,KAAI,CAACC,GAAE,SAAUC,EAAAA,EAAAA,IAAYL,EAAIE,YAAW,KAC1CF,EAAIE,WAAW,KAAGF,EAAIM,WAAW,UAMrC,C","sources":["webpack://gatsby-starter-lumen/./src/templates/TagsTemplate/TagsTemplate.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Link } from \"gatsby\";\n\nimport { Layout } from \"@/components/Layout\";\nimport { Meta } from \"@/components/Meta\";\nimport { Page } from \"@/components/Page\";\nimport { Sidebar } from \"@/components/Sidebar\";\nimport { useSiteMetadata, useTagsList } from \"@/hooks\";\nimport { toKebabCase } from \"@/utils\";\n\nconst TagsTemplate: React.FC = () => {\n const tags = useTagsList();\n\n return (\n <Layout>\n <Sidebar />\n <Page title=\"Tags\">\n <ul>\n {tags.map((tag) => (\n <li key={tag.fieldValue}>\n <Link to={`/tag/${toKebabCase(tag.fieldValue)}/`}>\n {tag.fieldValue} ({tag.totalCount})\n </Link>\n </li>\n ))}\n </ul>\n </Page>\n </Layout>\n );\n};\n\nexport const Head: React.FC = () => {\n const { title, subtitle } = useSiteMetadata();\n const pageTitle = `Tags - ${title}`;\n\n return <Meta title={pageTitle} description={subtitle} />;\n};\n\nexport default TagsTemplate;\n"],"names":["Head","title","subtitle","useSiteMetadata","pageTitle","React","Meta","description","TagsTemplate","tags","useTagsList","Layout","Sidebar","Page","map","tag","key","fieldValue","Link","to","toKebabCase","totalCount"],"sourceRoot":""}