PageSourceSearch

https://generationtux.com/_next/static/chunks/pages/blog-b9101e1761bada94.js

js generationtux.com collected 2026-10-03 19:01:09 UTC 4,668 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{7801:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return t(7836)}])},7836:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSG:function(){return y},default:function(){return pages_blog},getTotalPages:function(){return getTotalPages}});var l=t(5893),s=t(9008),n=t.n(s),r=t(1163),o=t(7294),i=t(4615),c=t(2486),d=t(1664),g=t.n(d),u=t(4358),m=t(1557),p=t(2076),h=t(1454),x=t(2950),Blog=e=>{var a,t,s;let{activeBlogCategory:n,posts:r,totalPages:o,updatePage:c}=e,[d,...v]=r;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("section",{className:"container",children:(0,l.jsxs)(g(),{href:i.AH,as:"".concat(i.rV,"/").concat(n.slug.current,"/").concat(null===(a=d.slug)||void 0===a?void 0:a.current),className:"row group relative mb-64 grid-cols-1 bg-white shadow-3 hover:no-underline md:grid-cols-12",children:[(0,l.jsx)(m.Z,{slot:"indexHero",url:d.mainImage.asset.url,alt:"".concat(d.mainImage.alt," thumbnail"),className:"col-span-1 md:col-span-7 md:aspect-ratio-7by5 lg:aspect-ratio-7by5",crop:!0,nativeWidth:null===(t=d.mainImage.asset.metadata.dimensions)||void 0===t?void 0:t.width}),(0,l.jsxs)("div",{className:"col-span-1 flex flex-col justify-center space-y-24 p-32 md:col-span-5 md:pl-0",children:[(0,l.jsx)("h2",{className:"text-h2-display duration-150 group-hover:text-gold-darker",children:d.title}),(0,l.jsxs)("div",{children:[d.author&&(0,l.jsx)("span",{className:"font-['Roboto Condensed Bold'] text-sm mr-8 font-bold leading-none tracking-wide",children:d.author.name}),(0,l.jsx)("span",{className:"text-xs",children:(0,p.Jp)(null!==(s=d.publishedAt)&&void 0!==s?s:"")})]}),(0,l.jsx)("div",{className:"text-gray-dark duration-150 group-hover:text-gold-darker",children:(0,p.X1)(d)}),(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"btn-info btn",children:["Read More"," ",(0,l.jsx)(x.Z,{})]})})]})]})}),(0,l.jsxs)("section",{className:"m-section container",children:[(0,l.jsx)("div",{className:"space-y-32 md:space-y-64",children:(0,l.jsx)("div",{className:"row mb-64 gap-y-32",children:v.map(e=>{var a,t,s,r,o;let c="tracker-callout-blog-post_".concat(null===(a=e.slug)||void 0===a?void 0:a.current.replace(/-/g,"_"),"-210920-134950");return(0,l.jsx)(h.Z,{caption:(0,p.Jp)(null!==(o=e.publishedAt)&&void 0!==o?o:""),className:"col-span-12 sm:col-span-6 md:col-span-4",ctaTitle:"Read more",subTitle:null==e?void 0:null===(t=e.author)||void 0===t?void 0:t.name,as:"".concat(i.rV,"/").concat(n.slug.current,"/").concat(null===(s=e.slug)||void 0===s?void 0:s.current),href:i.AH,image:(0,l.jsx)(m.Z,{alt:"".concat(e.mainImage.alt," thumbnail"),className:"col-span-1 aspect-ratio-7by5 md:col-span-8",crop:!0,nativeWidth:null===(r=e.mainImage.asset.metadata.dimensions)||void 0===r?void 0:r.width,slot:"indexCard",url:e.mainImage.asset.url}),title:String(e.title),trackerClass:c,children:(0,l.jsx)("div",{className:"text-gray-dark duration-150 group-hover:text-gold-darker",children:(0,p.X1)(e)})},e._id)})})}),(0,l.jsx)(u.ZP,{activeBlogCategory:n.slug.current,page:1,btnNext:(0,l.jsx)("div",{className:"text-right",children:(0,l.jsxs)("button",{className:"btn-info btn",onClick:()=>c({category:n,page:2}),children:["More Blogs"," ",(0,l.jsx)(x.Z,{})]})}),btnPrev:!1,totalPages:o,updatePage:c})]})]})},v=t(2461),j=t(9585),b=t(6091),N=t(1025),f=t(8510),P=t(8561),y=!0;let getTotalPages=e=>Math.ceil((e-c.Dq)/c.l2)+1;var pages_blog=e=>{var a;let{posts:t,...s}=e,[d,g]=(0,o.useState)(1),m=(0,r.useRouter)();(0,o.useEffect)(()=>{let e=(0,P.ak)("page")?Number((0,P.ak)("page")):d;e&&e!==d&&g(e),"page"in m.query||g(1)},[m.query]);let handleUpdatePage=e=>{let{page:a}=e;m.push({query:{page:a}}),g(a)},{totalPosts:p}=s,h=getTotalPages(p),x=(()=>{let e=0,a=Number(c.Dq);if(d>1){let t=Math.abs(c.l2-c.Dq);a=(e=(d-1)*c.l2-t)+c.l2}return t.slice(e,a)})();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n(),{children:(0,l.jsx)("title",{children:null!==(a=s.title)&&void 0!==a?a:"Generation Tux Blog"})}),(0,l.jsx)(j.Z,{categories:s.blogCategories,pathname:i.rV,showLogo:!0,children:d>1?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.Z,{activeBlogCategory:s.activeBlogCategory.slug.current,posts:x}),(0,l.jsx)(u.ZP,{activeBlogCategory:s.activeBlogCategory.slug.current,page:d,totalPages:h,updatePage:handleUpdatePage})]}):(0,l.jsx)(Blog,{...s,posts:x,page:d,totalPages:h,updatePage:handleUpdatePage})}),(0,l.jsx)(b.Z,{ctaPageName:"blog",salesCallout1:(0,l.jsx)(N.Z,{ctaPageName:"blog"}),salesCallout2:(0,l.jsx)(f.Z,{ctaPageName:"blog"})})]})}}},function(e){e.O(0,[865,774,888,179],function(){return e(e.s=7801)}),_N_E=e.O()}]);
2//# sourceMappingURL=blog-b9101e1761bada94.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.