-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-blog-query-tsx-cc871d7c8835fa8c1e61.js.map
1 lines (1 loc) · 5.5 KB
/
component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-blog-query-tsx-cc871d7c8835fa8c1e61.js.map
1
{"version":3,"sources":["webpack:///./src/@lekoarts/gatsby-theme-minimal-blog/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":["BlogListItem","post","showTags","mb","a","as","Link","to","slug","sx","fontSize","color","title","mt","date","tags","Fragment","Listing","posts","className","map","key","Blog","useSiteMetadata","tagsPath","basePath","alignItems","justifyContent","flexFlow","h2","variant","replaceSlashes","BlogComponent","allPost","data","nodes","query"],"mappings":"sKAqCeA,EAjBM,SAAC,GAAD,IAAGC,EAAH,EAAGA,KAAH,IAASC,gBAAT,gBACnB,YAAC,IAAD,CAAKC,GAAI,GACP,YAAC,IAAOC,EAAR,CAAUC,GAAIC,OAAMC,GAAIN,EAAKO,KAAMC,GAAI,CAAEC,SAAU,CAAC,EAAG,EAAG,GAAIC,MAAO,SAClEV,EAAKW,OAER,iBAAGH,GAAI,CAAEE,MAAO,YAAaE,GAAI,EAAGT,EAAG,CAAEO,MAAO,aAAeD,SAAU,CAAC,EAAG,EAAG,KAC9E,wBAAOT,EAAKa,MACXb,EAAKc,MAAQb,GACZ,YAAC,IAAMc,SAAP,WAEE,YAAC,IAAD,CAAUD,KAAMd,EAAKc,WCJhBE,IARC,SAAC,GAAD,IAAGC,EAAH,EAAGA,MAAOC,EAAV,EAAUA,UAAV,IAAqBjB,gBAArB,gBACd,uBAASO,GAAI,CAAEN,GAAI,CAAC,EAAG,EAAG,IAAMgB,UAAWA,GACxCD,EAAME,KAAI,SAAAnB,GAAI,OACb,YAAC,EAAD,CAAcoB,IAAKpB,EAAKO,KAAMP,KAAMA,EAAMC,SAAUA,U,kKCkB3CoB,EAjBF,SAAC,GAA0B,IAAxBJ,EAAwB,EAAxBA,MAAwB,EACPK,cAAvBC,EAD8B,EAC9BA,SAAUC,EADoB,EACpBA,SAElB,OACE,YAAC,IAAD,KACE,YAAC,IAAD,CAAKb,MAAM,SACX,YAAC,IAAD,CAAMH,GAAI,CAAEiB,WAAY,SAAUC,eAAgB,gBAAiBC,SAAU,SAC3E,YAAC,IAAOC,GAAR,aACA,YAAC,IAAOzB,EAAR,CAAUC,GAAIC,OAAMG,GAAI,CAAEqB,QAAS,mBAAqBvB,GAAIwB,YAAe,IAAIN,EAAL,IAAiBD,IAA3F,kBAIF,YAAC,IAAD,CAASN,MAAOA,EAAOT,GAAI,CAAEI,GAAI,CAAC,EAAG,QCjC3C,sCAEemB,UCOA,YAAqB,IAC1BC,EAD0B,EAAlBC,KACRD,QAER,OAAO,kBAAC,EAAD,CAAMf,MAAOe,EAAQE,SDVfH,IAEFI,EAAQ","file":"component---node-modules-lekoarts-gatsby-theme-minimal-blog-core-src-templates-blog-query-tsx-cc871d7c8835fa8c1e61.js","sourcesContent":["/** @jsx jsx */\nimport React from \"react\"\nimport { jsx, Styled } 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 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 <Styled.a as={Link} to={post.slug} sx={{ fontSize: [1, 2, 3], color: `text` }}>\n {post.title}\n </Styled.a>\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 */\r\nimport { jsx } from \"theme-ui\"\r\nimport BlogListItem from \"./blog-list-item\"\r\n\r\ntype ListingProps = {\r\n posts: {\r\n slug: string\r\n title: string\r\n date: string\r\n tags?: {\r\n name: string\r\n slug: string\r\n }[]\r\n }[]\r\n className?: string\r\n showTags?: boolean\r\n}\r\n\r\nconst Listing = ({ posts, className, showTags = true }: ListingProps) => (\r\n <section sx={{ mb: [5, 6, 7] }} className={className}>\r\n {posts.map(post => (\r\n <BlogListItem key={post.slug} post={post} showTags={showTags} />\r\n ))}\r\n </section>\r\n)\r\n\r\nexport default Listing\r\n","/** @jsx jsx */\r\nimport { jsx, Styled } from \"theme-ui\"\r\nimport { Link } from \"gatsby\"\r\nimport { Flex } from \"@theme-ui/components\"\r\nimport Layout from \"./layout\"\r\nimport Listing from \"./listing\"\r\nimport useSiteMetadata from \"../hooks/use-site-metadata\"\r\nimport replaceSlashes from \"../utils/replaceSlashes\"\r\nimport SEO from \"./seo\"\r\n\r\ntype PostsProps = {\r\n posts: {\r\n slug: string\r\n title: string\r\n date: string\r\n tags?: {\r\n name: string\r\n slug: string\r\n }[]\r\n }[]\r\n}\r\n\r\nconst Blog = ({ posts }: PostsProps) => {\r\n const { tagsPath, basePath } = useSiteMetadata()\r\n\r\n return (\r\n <Layout>\r\n <SEO title=\"Blog\" />\r\n <Flex sx={{ alignItems: `center`, justifyContent: `space-between`, flexFlow: `wrap` }}>\r\n <Styled.h2>Blog</Styled.h2>\r\n <Styled.a as={Link} sx={{ variant: `links.secondary` }} to={replaceSlashes(`/${basePath}/${tagsPath}`)}>\r\n View all tags\r\n </Styled.a>\r\n </Flex>\r\n <Listing posts={posts} sx={{ mt: [4, 5] }} />\r\n </Layout>\r\n )\r\n}\r\n\r\nexport default Blog\r\n","import { graphql } from \"gatsby\"\r\nimport BlogComponent from \"../components/blog\"\r\n\r\nexport default BlogComponent\r\n\r\nexport const query = graphql`\r\n query {\r\n allPost(sort: { fields: date, order: DESC }) {\r\n nodes {\r\n slug\r\n title\r\n date(formatString: \"DD.MM.YYYY\")\r\n tags {\r\n name\r\n slug\r\n }\r\n }\r\n }\r\n }\r\n`\r\n","import React from \"react\"\r\nimport Blog from \"../../../components/blog\"\r\n\r\ntype Props = {\r\n data: {\r\n allPost: any\r\n [key: string]: string\r\n }\r\n}\r\n\r\nexport default ({ data }: Props) => {\r\n const { allPost } = data\r\n\r\n return <Blog posts={allPost.nodes} />\r\n}\r\n"],"sourceRoot":""}