-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-tag-tsx-a52b59e68e900e1f9421.js.map
1 lines (1 loc) · 2.47 KB
/
component---src-templates-tag-tsx-a52b59e68e900e1f9421.js.map
1
{"version":3,"sources":["webpack:///./src/templates/Tag.tsx"],"names":["props","pathContext","posts","tagName","totalCount","length","subline","title","config","siteTitle","to","sectionTitle","map","post","index","frontmatter","date","excerpt","slug","timeToRead","category","key"],"mappings":"iMAQe,mBAACA,GAAqB,MACRA,EAAMC,YAAzBC,EAD2B,EAC3BA,MAAOC,EADoB,EACpBA,QACTC,EAAaF,EAAQA,EAAMG,OAAS,EACpCC,EAAaF,EAAN,SAAuC,IAAfA,EAAmB,GAAK,KAAhD,iBAAoED,EAApE,IAEb,OACE,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAQI,MAAU,UAAYC,IAAOC,YACrC,kBAAC,IAAD,KACE,kBAAC,OAAD,CAAMC,GAAG,KAAKF,IAAOC,WACrB,kBAAC,IAAD,cAA2BN,GAC3B,kBAAC,IAAD,CAASQ,cAAc,GACpBL,EADH,SACiB,kBAAC,OAAD,CAAMI,GAAG,SAAT,YADjB,MAIF,kBAAC,IAAD,KACE,kBAAC,IAAD,KACGR,EACGA,EAAMU,KAAI,SAACC,EAAWC,GAAZ,OACR,kBAAC,IAAD,CACEP,MAAOM,EAAKE,YAAYR,MACxBS,KAAMH,EAAKE,YAAYC,KACvBC,QAASJ,EAAKI,QACdC,KAAM,IAAUL,EAAKE,YAAYR,OACjCY,WAAYN,EAAKM,WACjBC,SAAUP,EAAKE,YAAYK,SAC3BC,IAAKP,OAGT","file":"component---src-templates-tag-tsx-a52b59e68e900e1f9421.js","sourcesContent":["import React from 'react';\nimport { Link } from 'gatsby';\nimport PageProps from '../models/PageProps';\nimport { Article, Content, Header, Layout, SectionTitle, Subline, Wrapper } from '../components';\nimport { Helmet } from 'react-helmet';\nimport config from '../../config/SiteConfig';\nimport { kebabCase } from 'lodash';\n\nexport default (props: PageProps) => {\n const { posts, tagName } = props.pathContext;\n const totalCount = posts ? posts.length : 0;\n const subline = `${totalCount} post${totalCount === 1 ? '' : 's'} tagged with \"${tagName}\"`;\n\n return (\n <Layout>\n <Helmet title={`${'Tags'} | ${config.siteTitle}`} />\n <Header>\n <Link to=\"/\">{config.siteTitle}</Link>\n <SectionTitle>Tag – {tagName}</SectionTitle>\n <Subline sectionTitle={true}>\n {subline} (See <Link to=\"/tags\">all tags</Link>)\n </Subline>\n </Header>\n <Wrapper>\n <Content>\n {posts\n ? posts.map((post: any, index) => (\n <Article\n title={post.frontmatter.title}\n date={post.frontmatter.date}\n excerpt={post.excerpt}\n slug={kebabCase(post.frontmatter.title)}\n timeToRead={post.timeToRead}\n category={post.frontmatter.category}\n key={index}\n />\n ))\n : null}\n </Content>\n </Wrapper>\n </Layout>\n );\n};\n"],"sourceRoot":""}