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