datahub/assets/js/9e4087bc.e3f7ea15.js
2025-08-22 14:09:31 +00:00

1 line
1.6 KiB
JavaScript

"use strict";(self.webpackChunkdocs_website=self.webpackChunkdocs_website||[]).push([[52711],{47788:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var r=a(96540),l=a(2775),n=a(6490),c=a(64475),s=a(79377);function i({year:e,posts:t}){return r.createElement(r.Fragment,null,r.createElement("h3",null,e),r.createElement("ul",null,t.map((e=>r.createElement("li",{key:e.metadata.date},r.createElement(l.A,{to:e.metadata.permalink},e.metadata.formattedDate," - ",e.metadata.title))))))}function m({years:e}){return r.createElement("section",{className:"margin-vert--lg"},r.createElement("div",{className:"container"},r.createElement("div",{className:"row"},e.map(((e,t)=>r.createElement("div",{key:t,className:"col col--4 margin-vert--lg"},r.createElement(i,e)))))))}function o({archive:e}){const t=(0,n.T)({id:"theme.blog.archive.title",message:"Archive",description:"The page & hero title of the blog archive page"}),a=(0,n.T)({id:"theme.blog.archive.description",message:"Archive",description:"The page & hero description of the blog archive page"}),l=function(e){const t=e.reduceRight(((e,t)=>{const a=t.metadata.date.split("-")[0];var r;const l=null!==(r=e.get(a))&&void 0!==r?r:[];return e.set(a,[t,...l])}),new Map);return Array.from(t,(([e,t])=>({year:e,posts:t})))}(e.blogPosts);return r.createElement(r.Fragment,null,r.createElement(c.be,{title:t,description:a}),r.createElement(s.A,null,r.createElement("header",{className:"hero hero--primary"},r.createElement("div",{className:"container"},r.createElement("h1",{className:"hero__title"},t),r.createElement("p",{className:"hero__subtitle"},a))),r.createElement("main",null,l.length>0&&r.createElement(m,{years:l}))))}}}]);