-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathcomponent---src-templates-blog-posts-tsx-784bafd240d54c2faa26.js
2 lines (2 loc) · 4.05 KB
/
component---src-templates-blog-posts-tsx-784bafd240d54c2faa26.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{D5SD:function(e,t,a){"use strict";a.r(t),a.d(t,"BlogPostsPage",(function(){return b}));a("Jmwx");var l=a("BMrR"),n=(a("rO+z"),a("kPKH")),r=(a("L/Qf"),a("2/Rp")),i=(a("0lcf"),a("mr32")),s=(a("2oDE"),a("CtXQ")),m=(a("a1Th"),a("Btvt"),a("r8i3")),o=a("q1tI"),c=a.n(o),d=a("Wbzz"),p=a("9eSz"),g=a.n(p),u=a("VXBa"),E=a("6o60"),x=a("7yOH"),f=a("lQBt"),h=a("zrU2"),N=a("0lfv"),b=(a("PhSm"),function(e){var t=e.pathContext,a=t.group,o=t.index,p=t.pageCount,b=o-1==1?"":(o-1).toString(),y=(o+1).toString(),k=m.data.site;return c.a.createElement(u.a,{location:e.location},c.a.createElement(E.a,{title:k.siteMetadata.title+" | "+k.siteMetadata.description,description:k.siteMetadata.description}),c.a.createElement(l.a,{gutter:36,className:"posts"},c.a.createElement(n.a,{xs:24,sm:24,md:24,lg:16,xl:18,xxl:18,id:"primary",className:"content-area with-sidebar"},a.map((function(e){var t=e.node,a=t.featured_media&&t.featured_media.localFile&&t.featured_media.localFile.childImageSharp&&t.featured_media.localFile.childImageSharp.fluid?t.featured_media.localFile.childImageSharp.fluid:null,l=(t.categories&&t.categories.length)>0?t.categories.filter((function(e){return"Uncategorized"!==e.name})):new Array,n=(t.tags&&t.tags.length)>0?t.tags:new Array;return c.a.createElement("article",{className:"post",key:t.slug},c.a.createElement(d.Link,{to:"/post/"+t.slug,title:t.slug},c.a.createElement("h1",{className:"black-color"},Object(N.b)(t.title))),c.a.createElement("div",{className:"categories-container tags-container post-meta-container margin-bottom-24px"},l&&l.length>0&&l.map((function(e,t){return c.a.createElement(i.a,{key:t},c.a.createElement(d.Link,{to:"/category/"+e.slug,title:e.name},c.a.createElement(s.a,{type:"folder"}),Object(N.a)(e.name)))})),n&&n.length>0&&n.map((function(e,t){return c.a.createElement(i.a,{key:t},c.a.createElement(d.Link,{to:"/tag/"+e.slug,title:e.name},c.a.createElement(s.a,{type:"tag"}),Object(N.a)(e.name)))})),c.a.createElement("span",{className:"post-meta margin-left-2px"},c.a.createElement("span",{className:"author"},Object(N.a)(t.author.name)),c.a.createElement("span",{className:"separator"}),c.a.createElement("span",{className:"date"},t.modified&&t.modified.length>0?t.modified:t.date))),a&&a.src&&a.src.length>0&&c.a.createElement(d.Link,{to:"/post/"+t.slug,title:t.slug},c.a.createElement(g.a,{fluid:a,alt:t.title,title:t.title})),c.a.createElement("div",{className:"post-excerpt",dangerouslySetInnerHTML:{__html:Object(N.b)(t.excerpt)}}),c.a.createElement("div",{className:"read-more-container"},c.a.createElement(d.Link,{to:"/post/"+t.slug,title:t.slug},c.a.createElement(r.a,{type:"default",className:"read-more"},"Read more"))))})),c.a.createElement("div",{className:"navigation-links"},o>1&&c.a.createElement("div",{className:"previous-link"},c.a.createElement(d.Link,{to:"/posts/"+b,title:"/posts/"+b},c.a.createElement(r.a,{type:"primary"},"Go to Previous Page"))),o<=p-1&&c.a.createElement("div",{className:"next-link"},c.a.createElement(d.Link,{to:"/posts/"+y,title:"/posts/"+y},c.a.createElement(r.a,{type:"primary"},"Go to Next Page"))))),c.a.createElement(n.a,{xs:0,sm:0,md:0,lg:8,xl:6,xxl:6,id:"secondary",className:"sidebar"},c.a.createElement(f.a,{title:c.a.createElement("h3",{className:"margin-bottom-36px"},"Twitter")}),c.a.createElement(h.a,{title:c.a.createElement("h3",{className:"margin-top-36px margin-bottom-36px"},"Facebook")}),c.a.createElement(x.a,{allInstaNode:e.pathContext.allInstaNode,orientation:"vertical",title:c.a.createElement("h3",{className:"margin-top-36px margin-bottom-36px"},"Instagram")}))),c.a.createElement(l.a,{type:"flex",align:"middle",gutter:36},c.a.createElement(n.a,{xs:24,sm:24,md:24,lg:0,xl:0,xxl:0,className:"align-center margin-top-36px margin-bottom-36px"},c.a.createElement(x.a,{allInstaNode:e.pathContext.allInstaNode,orientation:"horizontal"}))))});t.default=b},r8i3:function(e){e.exports=JSON.parse('{"data":{"site":{"siteMetadata":{"title":"My Demo Blog","description":"This is a demo blog"}}}}')}}]);
//# sourceMappingURL=component---src-templates-blog-posts-tsx-784bafd240d54c2faa26.js.map