-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-tag-template-tag-template-tsx-88bf2b1430994922970d.js.map
1 lines (1 loc) · 8.88 KB
/
component---src-templates-tag-template-tag-template-tsx-88bf2b1430994922970d.js.map
1
{"version":3,"file":"component---src-templates-tag-template-tag-template-tsx-88bf2b1430994922970d.js","mappings":"yLAqDA,MAzC8BA,IAAA,IAAC,MAAEC,GAAcD,EAAA,OAC7CE,EAAAA,cAAA,OAAKC,UCVW,4BDWbF,EAAMG,KAAKC,IAAI,IAAAC,EAAAC,EAAA,OACdL,EAAAA,cAAA,OAAKC,UCXO,2BDWiBK,IAAKH,EAAKI,KAAKC,OAAOC,MACjDT,EAAAA,cAAA,OAAKC,UCVK,4BDWRD,EAAAA,cAAA,QACEC,UCVM,2BDWNS,SAAU,IAAIC,KAAKR,EAAKI,KAAKK,YAAYC,MAAMC,mBAC7C,QACA,CAAEC,KAAM,UAAWC,MAAO,UAAWC,IAAK,aAG3C,IAAIN,KAAKR,EAAKI,KAAKK,YAAYC,MAAMC,mBAAmB,QAAS,CAChEC,KAAM,UACNC,MAAO,aAGXhB,EAAAA,cAAA,QAAMC,UC3BK,iCD6BbD,EAAAA,cAAA,MAAIC,UCtBO,6BDuBTD,EAAAA,cAACkB,EAAAA,KAAI,CACHjB,UC5BM,2BD6BNkB,IAAyB,QAArBf,EAAAD,EAAKI,KAAKK,mBAAW,IAAAR,OAAA,EAArBA,EAAuBK,OAAQN,EAAKI,KAAKC,OAAOC,MAEnDN,EAAKI,KAAKK,YAAYQ,QAG3BpB,EAAAA,cAAA,KAAGC,UCtCc,mCDuCdE,EAAKI,KAAKK,YAAYS,aAEzBrB,EAAAA,cAACkB,EAAAA,KAAI,CACHjB,UCpCQ,2BDqCRkB,IAAyB,QAArBd,EAAAF,EAAKI,KAAKK,mBAAW,IAAAP,OAAA,EAArBA,EAAuBI,OAAQN,EAAKI,KAAKC,OAAOC,MACrD,QAGG,IAEJ,C,2GEjDGa,EAAU,oCCqDrB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AAAA,cAACkD,EAAAA,EAAU,CACT3B,aAAcA,EACdC,aAAcA,EACdE,YAAaA,EACbD,YAAaA,KAGV,C","sources":["webpack://gatsby-starter-lumen/./src/components/Feed/Feed.tsx","webpack://gatsby-starter-lumen/./src/components/Feed/Feed.module.scss","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":["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 \"ja-JP\",\n { year: \"numeric\", month: \"2-digit\", day: \"numeric\" },\n )}\n >\n {new Date(edge.node.frontmatter.date).toLocaleDateString(\"ja-JP\", {\n year: \"numeric\",\n month: \"2-digit\",\n })}\n </time>\n <span className={styles.divider} />\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 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\";","// 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 }\n frontmatter {\n title\n date\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","_edge$node$frontmatte","_edge$node$frontmatte2","key","node","fields","slug","dateTime","Date","frontmatter","date","toLocaleDateString","year","month","day","Link","to","title","description","disable","prevPagePath","nextPagePath","hasNextPage","hasPrevPage","prevClassName","classNames","styles","nextClassName","rel","PAGINATION","Head","_ref2","pageContext","subtitle","useSiteMetadata","group","pagination","currentPage","page","pageTitle","Meta","data","allMarkdownRemark","Layout","Sidebar","Page","Feed","Pagination"],"sourceRoot":""}