-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-tag-query-tsx-6d5261cb188f0457dd2e.js.map
1 lines (1 loc) · 7.47 KB
/
component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-tag-query-tsx-6d5261cb188f0457dd2e.js.map
1
{"version":3,"sources":["webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/components/tag.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog-core/src/templates/tag-query.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/@lekoarts/gatsby-theme-minimal-blog-core/components/tag.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/components/item-tags.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/components/blog-list-item.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/components/listing.tsx"],"names":["Tag","posts","pageContext","useMinimalBlogConfig","tagsPath","basePath","title","name","sx","alignItems","justifyContent","flexFlow","as","variant","marginY","Link","to","replaceSlashes","mt","TagComponent","props","allPost","data","nodes","ItemTags","tags","Fragment","map","tag","i","key","slug","BlogListItem","post","showTags","mb","fontSize","color","a","date","Listing","className"],"mappings":"6NAsDeA,EAvBH,SAAC,GAAqC,IAAnCC,EAAmC,EAAnCA,MAAOC,EAA4B,EAA5BA,YAA4B,EACjBC,cAAvBC,EADwC,EACxCA,SAAUC,EAD8B,EAC9BA,SAElB,OACE,YAAC,IAAD,KACE,YAAC,IAAD,CAAKC,MAAK,QAAUJ,EAAYK,OAChC,YAAC,IAAD,CAAMC,GAAI,CAAEC,WAAY,SAAUC,eAAgB,gBAAiBC,SAAU,SAC3E,YAAC,IAAD,CAASC,GAAG,KAAKC,QAAQ,YAAYL,GAAI,CAAEM,QAAS,IACjDZ,EAAYK,MAEf,YAAC,IAAD,CACEK,GAAIG,OACJP,GAAI,CAAEK,QAAS,kBAAm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,GACxCxC,EAAM0B,KAAI,SAACM,GAAD,OACT,YAAC,EAAD,CAAcH,IAAKG,EAAKF,KAAME,KAAMA,EAAMC,SAAUA","file":"component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-tag-query-tsx-6d5261cb188f0457dd2e.js","sourcesContent":["/** @jsx jsx */\nimport { jsx, Heading, Link as TLink } from \"theme-ui\"\nimport { Flex } from \"@theme-ui/components\"\nimport { Link } from \"gatsby\"\nimport Layout from \"./layout\"\nimport useMinimalBlogConfig from \"../hooks/use-minimal-blog-config\"\nimport Listing from \"./listing\"\nimport replaceSlashes from \"../utils/replaceSlashes\"\nimport SEO from \"./seo\"\n\ntype TagProps = {\n posts: {\n slug: string\n title: string\n date: string\n excerpt: string\n description: string\n timeToRead?: number\n tags: {\n name: string\n slug: string\n }[]\n }[]\n pageContext: {\n isCreatedByStatefulCreatePages: boolean\n slug: string\n name: string\n [key: string]: any\n }\n}\n\nconst Tag = ({ posts, pageContext }: TagProps) => {\n const { tagsPath, basePath } = useMinimalBlogConfig()\n\n return (\n <Layout>\n <SEO title={`Tag: ${pageContext.name}`} />\n <Flex sx={{ alignItems: `center`, justifyContent: `space-between`, flexFlow: `wrap` }}>\n <Heading as=\"h1\" variant=\"styles.h1\" sx={{ marginY: 2 }}>\n {pageContext.name}\n </Heading>\n <TLink\n as={Link}\n sx={{ variant: `links.secondary`, marginY: 2 }}\n to={replaceSlashes(`/${basePath}/${tagsPath}`)}\n >\n View all tags\n </TLink>\n </Flex>\n <Listing posts={posts} sx={{ mt: [4, 5] }} />\n </Layout>\n )\n}\n\nexport default Tag\n","import { graphql } from \"gatsby\"\nimport TagComponent from \"../components/tag\"\n\nexport default TagComponent\n\nexport const query = graphql`\n query($slug: String!, $formatString: String!) {\n allPost(sort: { fields: date, order: DESC }, filter: { tags: { elemMatch: { slug: { eq: $slug } } } }) {\n nodes {\n slug\n title\n date(formatString: $formatString)\n excerpt\n timeToRead\n description\n tags {\n name\n slug\n }\n }\n }\n }\n`\n","import React from \"react\"\nimport Tag from \"../../../components/tag\"\n\ntype Props = {\n data: {\n allPost: any\n [key: string]: any\n }\n pageContext: {\n isCreatedByStatefulCreatePages: boolean\n slug: string\n name: string\n [key: string]: any\n }\n [key: string]: any\n}\n\nexport default function MinimalBlogCoreTag({ ...props }: Props) {\n const {\n data: { allPost },\n } = props\n\n return <Tag posts={allPost.nodes} {...props} />\n}\n","import React from \"react\"\nimport { Link as TLink } from \"theme-ui\"\nimport { Link } from \"gatsby\"\nimport useMinimalBlogConfig from \"../hooks/use-minimal-blog-config\"\nimport replaceSlashes from \"../utils/replaceSlashes\"\n\ntype TagsProps = {\n tags: {\n name: string\n slug: string\n }[]\n}\n\nconst ItemTags = ({ tags }: TagsProps) => {\n const { tagsPath, basePath } = useMinimalBlogConfig()\n\n return (\n <React.Fragment>\n {tags.map((tag, i) => (\n <React.Fragment key={tag.slug}>\n {!!i && `, `}\n <TLink as={Link} to={replaceSlashes(`/${basePath}/${tagsPath}/${tag.slug}`)}>\n {tag.name}\n </TLink>\n </React.Fragment>\n ))}\n </React.Fragment>\n )\n}\n\nexport default ItemTags\n","/** @jsx jsx */\nimport React from \"react\"\nimport { jsx, Link as TLink } from \"theme-ui\"\nimport { Box } from \"@theme-ui/components\"\nimport { Link } from \"gatsby\"\nimport ItemTags from \"./item-tags\"\n\ntype BlogListItemProps = {\n post: {\n slug: string\n title: string\n date: string\n excerpt: string\n description: string\n timeToRead?: number\n tags?: {\n name: string\n slug: string\n }[]\n }\n showTags?: boolean\n}\n\nconst BlogListItem = ({ post, showTags = true }: BlogListItemProps) => (\n <Box mb={4}>\n <TLink as={Link} to={post.slug} sx={{ fontSize: [1, 2, 3], color: `text` }}>\n {post.title}\n </TLink>\n <p sx={{ color: `secondary`, mt: 1, a: { color: `secondary` }, fontSize: [1, 1, 2] }}>\n <time>{post.date}</time>\n {post.tags && showTags && (\n <React.Fragment>\n {` — `}\n <ItemTags tags={post.tags} />\n </React.Fragment>\n )}\n </p>\n </Box>\n)\n\nexport default BlogListItem\n","/** @jsx jsx */\nimport { jsx } from \"theme-ui\"\nimport BlogListItem from \"./blog-list-item\"\n\ntype ListingProps = {\n posts: {\n slug: string\n title: string\n date: string\n excerpt: string\n description: string\n timeToRead?: number\n tags?: {\n name: string\n slug: string\n }[]\n }[]\n className?: string\n showTags?: boolean\n}\n\nconst Listing = ({ posts, className = ``, showTags = true }: ListingProps) => (\n <section sx={{ mb: [5, 6, 7] }} className={className}>\n {posts.map((post) => (\n <BlogListItem key={post.slug} post={post} showTags={showTags} />\n ))}\n </section>\n)\n\nexport default Listing\n"],"sourceRoot":""}