-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-tag-template-tag-template-tsx-e557ce75ffb74b44da09.js.map
1 lines (1 loc) · 9.53 KB
/
component---src-templates-tag-template-tag-template-tsx-e557ce75ffb74b44da09.js.map
1
{"version":3,"file":"component---src-templates-tag-template-tag-template-tsx-e557ce75ffb74b44da09.js","mappings":"yLAMW,EAAO,2BCoDlB,MA9C8BA,IAAAA,IAAC,MAAEC,GAAc,SAC7CC,EAAAA,QAAAA,cAAAA,MAAAA,CAAKC,UDTW,4BCUbF,EAAMG,KAAKC,IAAI,eACdH,EAAAA,QAAAA,cAAAA,MAAAA,CAAKC,UDVO,2BCUiBG,IAAKD,EAAKE,KAAKC,OAAOC,MACjDP,EAAAA,QAAAA,cAAAA,MAAAA,CAAKC,UDTK,4BCURD,EAAAA,QAAAA,cAAAA,OAAAA,CACEC,UDTM,2BCUNO,SAAU,IAAIC,KAAKN,EAAKE,KAAKK,YAAYC,MAAMC,mBAC7C,QACA,CAAEC,KAAM,UAAWC,MAAO,OAAQC,IAAK,aAGxC,IAAIN,KAAKN,EAAKE,KAAKK,YAAYC,MAAMC,mBAAmB,QAAS,CAChEC,KAAM,UACNC,MAAO,UAGXd,EAAAA,QAAAA,cAAAA,OAAAA,CAAMC,UD1BK,gCC2BXD,EAAAA,QAAAA,cAAAA,OAAAA,CAAMC,UD7BM,gCC8BVD,EAAAA,QAAAA,cAACgB,EAAAA,KAAI,CAACC,GAAId,EAAKE,KAAKC,OAAOY,aAAcjB,UAAWkB,GACjDhB,EAAKE,KAAKK,YAAYU,YAI7BpB,EAAAA,QAAAA,cAAAA,KAAAA,CAAIC,UD1BO,6BC2BTD,EAAAA,QAAAA,cAACgB,EAAAA,KAAI,CACHf,UAAWkB,EACXF,IAAyB,QAArB,EAAAd,EAAKE,KAAKK,mBAAW,aAArBW,EAAuBd,OAAQJ,EAAKE,KAAKC,OAAOC,MAEnDJ,EAAKE,KAAKK,YAAYY,QAG3BtB,EAAAA,QAAAA,c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AI,YAAET,GAAoB,EAChE,MAAM,MAAEG,EAAK,WAAEC,GAAeJ,GACxB,aAAEb,EAAY,aAAEC,EAAY,YAAEE,EAAW,YAAED,GAAgBe,GAC3D,MAAE5C,GAAUiD,EAAKC,kBAEvB,OACEjD,EAAAA,QAAAA,cAACkD,EAAAA,EAAM,KACLlD,EAAAA,QAAAA,cAACmD,EAAAA,EAAO,MACRnD,EAAAA,QAAAA,cAACoD,EAAAA,EAAI,CAAC9B,MAAOoB,GACX1C,EAAAA,QAAAA,cAACqD,EAAAA,EAAI,CAACtD,MAAOA,IACbC,EAAAA,QAAAA,cAACsD,EAAAA,EAAU,CACT5B,aAAcA,EACdC,aAAcA,EACdE,YAAaA,EACbD,YAAaA,KAGV,C","sources":["webpack://gatsby-starter-lumen/./src/components/Feed/Feed.module.scss","webpack://gatsby-starter-lumen/./src/components/Feed/Feed.tsx","webpack://gatsby-starter-lumen/./src/components/Pagination/Pagination.module.scss","webpack://gatsby-starter-lumen/./src/components/Pagination/Pagination.tsx","webpack://gatsby-starter-lumen/./src/templates/TagTemplate/TagTemplate.tsx"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport var category = \"Feed-module--category--59f58\";\nexport var description = \"Feed-module--description--57348\";\nexport var divider = \"Feed-module--divider--81a18\";\nexport var feed = \"Feed-module--feed--a6204\";\nexport var item = \"Feed-module--item--c7a63\";\nexport var link = \"Feed-module--link--6123b\";\nexport var meta = \"Feed-module--meta--250c2\";\nexport var more = \"Feed-module--more--51a4e\";\nexport var time = \"Feed-module--time--72864\";\nexport var title = \"Feed-module--title--f252f\";","import React from \"react\";\n\nimport { Link } from \"gatsby\";\n\nimport { Edge } from \"@/types\";\n\nimport * as styles from \"./Feed.module.scss\";\n\ntype Props = {\n edges: Array<Edge>;\n};\n\nconst Feed: React.FC<Props> = ({ edges }: Props) => (\n <div className={styles.feed}>\n {edges.map((edge) => (\n <div className={styles.item} key={edge.node.fields.slug}>\n <div className={styles.meta}>\n <time\n className={styles.time}\n dateTime={new Date(edge.node.frontmatter.date).toLocaleDateString(\n \"en-US\",\n { year: \"numeric\", month: \"long\", day: \"numeric\" },\n )}\n >\n {new Date(edge.node.frontmatter.date).toLocaleDateString(\"en-US\", {\n year: \"numeric\",\n month: \"long\",\n })}\n </time>\n <span className={styles.divider} />\n <span className={styles.category}>\n <Link to={edge.node.fields.categorySlug} className={styles.link}>\n {edge.node.frontmatter.category}\n </Link>\n </span>\n </div>\n <h2 className={styles.title}>\n <Link\n className={styles.link}\n to={edge.node.frontmatter?.slug || edge.node.fields.slug}\n >\n {edge.node.frontmatter.title}\n </Link>\n </h2>\n <p className={styles.description}>\n {edge.node.frontmatter.description}\n </p>\n <Link\n className={styles.more}\n to={edge.node.frontmatter?.slug || edge.node.fields.slug}\n >\n Read\n </Link>\n </div>\n ))}\n </div>\n);\n\nexport default Feed;\n","// extracted by mini-css-extract-plugin\nexport var disable = \"Pagination-module--disable--7e105\";\nexport var next = \"Pagination-module--next--1cab8\";\nexport var nextLink = \"Pagination-module--nextLink--532ff\";\nexport var pagination = \"Pagination-module--pagination--d61cb\";\nexport var previous = \"Pagination-module--previous--4a76b\";\nexport var previousLink = \"Pagination-module--previousLink--5590d\";","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport { Link } from \"gatsby\";\n\nimport { PAGINATION } from \"@/constants\";\n\nimport * as styles from \"./Pagination.module.scss\";\n\ntype Props = {\n prevPagePath: string;\n nextPagePath: string;\n hasNextPage: boolean;\n hasPrevPage: boolean;\n};\n\nconst Pagination = ({\n prevPagePath,\n nextPagePath,\n hasNextPage,\n hasPrevPage,\n}: Props) => {\n const prevClassName = classNames(styles.previousLink, {\n [styles.disable]: !hasPrevPage,\n });\n\n const nextClassName = classNames(styles.nextLink, {\n [styles.disable]: !hasNextPage,\n });\n\n return (\n <div className={styles.pagination}>\n <div className={styles.previous}>\n <Link\n rel=\"prev\"\n to={hasPrevPage ? prevPagePath : \"/\"}\n className={prevClassName}\n >\n {PAGINATION.PREV_PAGE}\n </Link>\n </div>\n <div className={styles.next}>\n <Link\n rel=\"next\"\n to={hasNextPage ? nextPagePath : \"/\"}\n className={nextClassName}\n >\n {PAGINATION.NEXT_PAGE}\n </Link>\n </div>\n </div>\n );\n};\n\nexport default Pagination;\n","import React from \"react\";\n\nimport { graphql } from \"gatsby\";\n\nimport { Feed } from \"@/components/Feed\";\nimport { Layout } from \"@/components/Layout\";\nimport { Meta } from \"@/components/Meta\";\nimport { Page } from \"@/components/Page\";\nimport { Pagination } from \"@/components/Pagination\";\nimport { Sidebar } from \"@/components/Sidebar\";\nimport { useSiteMetadata } from \"@/hooks\";\nimport { AllMarkdownRemark, PageContext } from \"@/types\";\n\ninterface Props {\n data: {\n allMarkdownRemark: AllMarkdownRemark;\n };\n pageContext: PageContext;\n}\n\nconst TagTemplate: React.FC<Props> = ({ data, pageContext }: Props) => {\n const { group, pagination } = pageContext;\n const { prevPagePath, nextPagePath, hasPrevPage, hasNextPage } = pagination;\n const { edges } = data.allMarkdownRemark;\n\n return (\n <Layout>\n <Sidebar />\n <Page title={group}>\n <Feed edges={edges} />\n <Pagination\n prevPagePath={prevPagePath}\n nextPagePath={nextPagePath}\n hasPrevPage={hasPrevPage}\n hasNextPage={hasNextPage}\n />\n </Page>\n </Layout>\n );\n};\n\nexport const query = graphql`\n query TagTemplate($group: String, $limit: Int!, $offset: Int!) {\n site {\n siteMetadata {\n title\n subtitle\n }\n }\n allMarkdownRemark(\n limit: $limit\n skip: $offset\n filter: {\n frontmatter: {\n tags: { in: [$group] }\n template: { eq: \"post\" }\n draft: { ne: true }\n }\n }\n sort: { order: DESC, fields: [frontmatter___date] }\n ) {\n edges {\n node {\n fields {\n slug\n categorySlug\n }\n frontmatter {\n title\n date\n category\n description\n slug\n }\n }\n }\n }\n }\n`;\n\nexport const Head: React.FC<Props> = ({ pageContext }) => {\n const { title, subtitle } = useSiteMetadata();\n\n const {\n group,\n pagination: { currentPage: page },\n } = pageContext;\n\n const pageTitle =\n page > 0 ? `${group} - Page ${page} - ${title}` : `${group} - ${title}`;\n\n return <Meta title={pageTitle} description={subtitle} />;\n};\n\nexport default TagTemplate;\n"],"names":["_ref","edges","React","className","map","edge","key","node","fields","slug","dateTime","Date","frontmatter","date","toLocaleDateString","year","month","day","Link","to","categorySlug","styles","category","_edge$node$frontmatte","title","description","_edge$node$frontmatte2","disable","prevPagePath","nextPagePath","hasNextPage","hasPrevPage","prevClassName","classNames","nextClassName","rel","PAGINATION","PREV_PAGE","NEXT_PAGE","Head","_ref2","pageContext","subtitle","useSiteMetadata","group","pagination","currentPage","page","pageTitle","Meta","data","allMarkdownRemark","Layout","Sidebar","Page","Feed","Pagination"],"sourceRoot":""}