-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-blog-query-tsx-970be14a9aae153925c1.js.map
1 lines (1 loc) · 7.09 KB
/
component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-blog-query-tsx-970be14a9aae153925c1.js.map
1
{"version":3,"sources":["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","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/components/blog.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog-core/src/templates/blog-query.tsx","webpack:///./node_modules/@lekoarts/gatsby-theme-minimal-blog/src/@lekoarts/gatsby-theme-minimal-blog-core/components/blog.tsx"],"names":["ItemTags","tags","useMinimalBlogConfig","tagsPath","basePath","Fragment","map","tag","i","key","slug","as","Link","to","replaceSlashes","name","BlogListItem","post","showTags","mb","sx","fontSize","color","title","mt","a","date","Listing","posts","className","Blog","alignItems","justifyContent","flexFlow","variant","marginY","BlogComponent","props","allPost","data","nodes"],"mappings":"2FAAA,yEA8BeA,IAjBE,SAAC,GAAwB,IAAtBC,EAAsB,EAAtBA,KAAsB,EACTC,cAAvBC,EADgC,EAChCA,SAAUC,EADsB,EACtBA,SAElB,OACE,kBAAC,IAAMC,SAAP,KACGJ,EAAKK,KAAI,SAACC,EAAKC,GAAN,OACR,kBAAC,IAAMH,SAAP,CAAgBI,IAAKF,EAAIG,QACpBF,GAAF,KACD,kBAAC,IAAD,CAAOG,GAAIC,OAAMC,GAAIC,YAAe,IAAIV,EAAL,IAAiBD,EAAjB,IAA6BI,EAAIG,OACjEH,EAAIQ,a,6GCkBFC,EAjBM,SAAC,GAAD,IAAGC,EAAH,EAAGA,KAAH,IAASC,gBAAT,gBACnB,Y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AAMV,MAAOU,EAAQE,OAAWH","file":"component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-blog-query-tsx-970be14a9aae153925c1.js","sourcesContent":["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","/** @jsx jsx */\nimport { jsx, Heading, Link as TLink } from \"theme-ui\"\nimport { Link } from \"gatsby\"\nimport { Flex } from \"@theme-ui/components\"\nimport Layout from \"./layout\"\nimport Listing from \"./listing\"\nimport useMinimalBlogConfig from \"../hooks/use-minimal-blog-config\"\nimport replaceSlashes from \"../utils/replaceSlashes\"\nimport SEO from \"./seo\"\n\ntype PostsProps = {\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 [key: string]: any\n}\n\nconst Blog = ({ posts }: PostsProps) => {\n const { tagsPath, basePath } = useMinimalBlogConfig()\n\n return (\n <Layout>\n <SEO title=\"Blog\" />\n <Flex sx={{ alignItems: `center`, justifyContent: `space-between`, flexFlow: `wrap` }}>\n <Heading as=\"h1\" variant=\"styles.h1\" sx={{ marginY: 2 }}>\n Blog\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 Blog\n","import { graphql } from \"gatsby\"\nimport BlogComponent from \"../components/blog\"\n\nexport default BlogComponent\n\nexport const query = graphql`\n query($formatString: String!) {\n allPost(sort: { fields: date, order: DESC }) {\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 Blog from \"../../../components/blog\"\n\ntype Props = {\n data: {\n allPost: any\n [key: string]: string\n }\n [key: string]: any\n}\n\nexport default function MinimalBlogCoreBlog({ ...props }: Props) {\n const {\n data: { allPost },\n } = props\n\n return <Blog posts={allPost.nodes} {...props} />\n}\n"],"sourceRoot":""}