mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-02 05:08:57 +02:00
1 line
2.0 KiB
JavaScript
1 line
2.0 KiB
JavaScript
"use strict";(globalThis.webpackChunkOpenSign_Docs=globalThis.webpackChunkOpenSign_Docs||[]).push([[2711],{89331(e,a,t){t.r(a),t.d(a,{default:()=>m});t(96540);var r=t(28774),n=t(21312),s=t(45500),i=t(36266),c=t(2828),l=t(51107),o=t(74848);function d({year:e,posts:a}){const t=(0,i.i)({day:"numeric",month:"long",timeZone:"UTC"});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.default,{as:"h3",id:e,children:e}),(0,o.jsx)("ul",{children:a.map(e=>{return(0,o.jsx)("li",{children:(0,o.jsxs)(r.default,{to:e.metadata.permalink,children:[(a=e.metadata.date,t.format(new Date(a)))," - ",e.metadata.title]})},e.metadata.date);var a})})]})}function h({years:e}){return(0,o.jsx)("section",{className:"margin-vert--lg",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row",children:e.map((e,a)=>(0,o.jsx)("div",{className:"col col--4 margin-vert--lg",children:(0,o.jsx)(d,{...e})},a))})})})}function m({archive:e}){const a=(0,n.translate)({id:"theme.blog.archive.title",message:"Archive",description:"The page & hero title of the blog archive page"}),t=(0,n.translate)({id:"theme.blog.archive.description",message:"Archive",description:"The page & hero description of the blog archive page"}),r=function(e){const a=e.reduce((e,a)=>{const t=a.metadata.date.split("-")[0],r=e.get(t)??[];return e.set(t,[a,...r])},new Map);return Array.from(a,([e,a])=>({year:e,posts:a}))}(e.blogPosts);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.be,{title:a,description:t}),(0,o.jsxs)(c.A,{children:[(0,o.jsx)("header",{className:"hero hero--primary",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)(l.default,{as:"h1",className:"hero__title",children:a}),(0,o.jsx)("p",{className:"hero__subtitle",children:t})]})}),(0,o.jsx)("main",{children:r.length>0&&(0,o.jsx)(h,{years:r})})]})]})}},36266(e,a,t){t.d(a,{i:()=>n});var r=t(44586);function n(e={}){const{i18n:{currentLocale:a}}=(0,r.default)(),t=function(){const{i18n:{currentLocale:e,localeConfigs:a}}=(0,r.default)();return a[e].calendar}();return new Intl.DateTimeFormat(a,{calendar:t,...e})}}}]); |