mirror of
https://github.com/bspeice/speice.io
synced 2024-11-14 22:18:10 -05:00
1 line
1.9 KiB
JavaScript
1 line
1.9 KiB
JavaScript
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["2998"],{8127:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(5893);n(7294);var l=n(6025),r=n(790);function s(e){let{nextItem:t,prevItem:n}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,l.I)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[t&&(0,i.jsx)(r.Z,{...t,subLabel:(0,i.jsx)(l.Z,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older post"})}),n&&(0,i.jsx)(r.Z,{...n,subLabel:(0,i.jsx)(l.Z,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer post"}),isNext:!0})]})}},131:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(5893),l=n(7294),r=n(4403);function s(e){let{title:t,headingType:n,children:l}=e;return(0,i.jsxs)("div",{role:"group",children:[(0,i.jsx)(r.Z,{as:n,children:t}),l]})}let o=(0,l.memo)(function(e){let{items:t,yearGroupHeadingClassName:n,ListComponent:l}=e;return function(e,t){var n=[],l=[];function r(){if(0===l.length)return;let e=new Date(l[0].date).getFullYear(),r=function(e,t){var n=[],l=[];function r(){if(0===l.length)return;let e=l[0].title.split(":")[0];l=(l=l.map(e=>({...e,title:e.title.split(":")[1].trim()}))).reverse(),n.push((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s,{title:e,headingType:"h4",children:(0,i.jsx)("ul",{children:(0,i.jsx)(t,{items:l})})})})),l=[]}for(let s of e){if(s.title.includes(":")){l.push(s);continue}r(),n.push((0,i.jsx)(t,{items:[s]}))}return r(),n}(l,t);n.push((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s,{title:String(e),headingType:"h3",children:r})})),l=[]}for(let t of e){if(0===l.length){l.push(t);continue}let e=new Date(t.date).getFullYear();e!==new Date(l[0].date).getFullYear()&&r(),l.push(t)}return r(),n}(t,l)})}}]); |