-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-openly-fluffy-js-5ec75470d693e42f0675.js.map
1 lines (1 loc) · 2.88 KB
/
component---src-pages-openly-fluffy-js-5ec75470d693e42f0675.js.map
1
{"version":3,"sources":["webpack:///./src/pages/openly-fluffy.js"],"names":["OpenlyFluffy","title","id","className","query","render","data","allMarkdownRemark","totalCount","edges","map","date","day","monthIndex","year","node","key","Date","frontmatter","getUTCDate","getUTCMonth","getUTCFullYear","to","path"],"mappings":"47DAkEeA,UA5BM,kBACnB,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAKC,MAAM,0BACb,6BAASC,GAAG,YAAYC,UAAU,gBACjC,yBAAKA,UAAU,aACd,yBAAKA,UAAU,aACd,qDACA,kBAAC,cAAD,CACCC,MAxCgB,aAyChBC,OAAQ,SAAAC,GAAI,OACX,oCACC,4BAAKA,EAAKC,kBAAkBC,WAA5B,UACA,4BACEF,EAAKC,kBAAkBE,MAAMC,KAAI,gBA5BvBC,EAQdC,EACAC,EACAC,EAkBwCC,EAAH,EAAGA,KAAH,OACjC,yBAAKC,IAAKD,EAAKb,IACd,6BA9BSS,EA8BO,IAAIM,KAAKF,EAAKG,YAAYP,MAtB/CC,EAAMD,EAAKQ,aACXN,EAAaF,EAAKS,cAClBN,EAAOH,EAAKU,iBATC,CACf,UAAW,WAAY,QACvB,QAAS,MAAO,OAAQ,OACxB,SAAU,YAAa,UACvB,WAAY,YAOIR,GAAc,IAAMD,EAAM,KAAOE,GAkB1C,MAAoD,kBAAC,OAAD,CAAMQ,GAAIP,EAAKG,YAAYK,MAAOR,EAAKG,YAAYjB,eAR7G","file":"component---src-pages-openly-fluffy-js-5ec75470d693e42f0675.js","sourcesContent":["import React from \"react\"\r\nimport { graphql, StaticQuery, Link } from \"gatsby\"\r\n\r\nimport Layout from \"../components/layout\"\r\nimport SEO from \"../components/seo\"\r\n\r\nconst getMarkdownPosts = graphql`\r\n{\r\n allMarkdownRemark(sort: {order: DESC, fields: [frontmatter___date]}) {\r\n\t\ttotalCount\r\n edges {\r\n node {\r\n frontmatter {\r\n\t\t\t\t\tdate\r\n path\r\n title\r\n }\r\n }\r\n }\r\n }\r\n}\r\n`\r\n\r\nfunction formatDate(date) {\r\n var monthNames = [\r\n \"January\", \"February\", \"March\",\r\n \"April\", \"May\", \"June\", \"July\",\r\n \"August\", \"September\", \"October\",\r\n \"November\", \"December\"\r\n ];\r\n\r\n var day = date.getUTCDate();\r\n var monthIndex = date.getUTCMonth();\r\n var year = date.getUTCFullYear();\r\n\r\n return monthNames[monthIndex] + ' ' + day + ', ' + year;\r\n}\r\n\r\nconst OpenlyFluffy = () => (\r\n <Layout>\r\n <SEO title=\"Openly Fluffy Updates\" />\r\n\t\t<section id=\"sec-intro\" className=\"hero lightBg\">\r\n\t\t\t<div className=\"hero-body\">\r\n\t\t\t\t<div className=\"container\">\r\n\t\t\t\t\t<h1>Openly Fluffy Updates</h1>\r\n\t\t\t\t\t<StaticQuery\r\n\t\t\t\t\t\tquery={getMarkdownPosts}\r\n\t\t\t\t\t\trender={data => (\r\n\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t<h4>{data.allMarkdownRemark.totalCount} posts</h4>\r\n\t\t\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t\t\t{data.allMarkdownRemark.edges.map(({ node }) => (\r\n\t\t\t\t\t\t\t\t\t\t<div key={node.id}>\r\n\t\t\t\t\t\t\t\t\t\t\t<li>{formatDate(new Date(node.frontmatter.date))} - <Link to={node.frontmatter.path}>{node.frontmatter.title}</Link></li>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</section>\r\n </Layout>\r\n)\r\n\r\nexport default OpenlyFluffy\r\n"],"sourceRoot":""}