docusaurus/assets/js/9e4087bc.55c3c19c.js
2025-01-06 16:57:35 +00:00

1 line
No EOL
2.1 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["47293"],{61302:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});var a=r(85893);r(67294);var n=r(35363),i=r(77827),s=r(57335),l=r(90177),c=r(88408),d=r(57922);function h(e){let{year:t,posts:r}=e,i=(0,l.P)({day:"numeric",month:"long",timeZone:"UTC"}),s=e=>i.format(new Date(e));return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{as:"h3",id:t,children:t}),(0,a.jsx)("ul",{children:r.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)(n.Z,{to:e.metadata.permalink,children:[s(e.metadata.date)," - ",e.metadata.title]})},e.metadata.date))})]})}function o(e){let{years:t}=e;return(0,a.jsx)("section",{className:"margin-vert--lg",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"row",children:t.map((e,t)=>(0,a.jsx)("div",{className:"col col--4 margin-vert--lg",children:(0,a.jsx)(h,{...e})},t))})})})}function m(e){let{archive:t}=e,r=(0,i.I)({id:"theme.blog.archive.title",message:"Archive",description:"The page & hero title of the blog archive page"}),n=(0,i.I)({id:"theme.blog.archive.description",message:"Archive",description:"The page & hero description of the blog archive page"}),l=Array.from(t.blogPosts.reduce((e,t)=>{let r=t.metadata.date.split("-")[0],a=e.get(r)??[];return e.set(r,[t,...a])},new Map),e=>{let[t,r]=e;return{year:t,posts:r}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.d,{title:r,description:n}),(0,a.jsxs)(c.Z,{children:[(0,a.jsx)("header",{className:"hero hero--primary",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(d.Z,{as:"h1",className:"hero__title",children:r}),(0,a.jsx)("p",{className:"hero__subtitle",children:n})]})}),(0,a.jsx)("main",{children:l.length>0&&(0,a.jsx)(o,{years:l})})]})]})}},90177:function(e,t,r){r.d(t,{P:function(){return n}});var a=r(8156);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{i18n:{currentLocale:t}}=(0,a.Z)(),r=function(){let{i18n:{currentLocale:e,localeConfigs:t}}=(0,a.Z)();return t[e].calendar}();return new Intl.DateTimeFormat(t,{calendar:r,...e})}}}]);