mirror of
https://github.com/bspeice/speice.io
synced 2024-12-22 16:48:10 -05:00
1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
|
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["9854"],{48448:function(e,t,n){n.r(t),n.d(t,{default:()=>j});var r=n("85893");n("67294");var s=n("67026"),i=n("82743"),l=n("84681"),u=n("96025");let a=()=>(0,u.I)({id:"theme.blog.authorsList.pageTitle",message:"Authors",description:"The title of the authors page"});var h=n("40979"),o=n("84315"),c=n("34403"),d=n("21389");let g={authorListItem:"authorListItem_n3yI"};function f(e){let{author:t}=e;return(0,r.jsx)("li",{className:g.authorListItem,children:(0,r.jsx)(d.Z,{as:"h2",author:t,count:t.count})})}function p(e){let{authors:t}=e;return(0,r.jsx)("section",{className:(0,s.Z)("margin-vert--lg",g.authorsListSection),children:(0,r.jsx)("ul",{children:t.map(e=>(0,r.jsx)(f,{author:e},e.key))})})}function j(e){let{authors:t,sidebar:n}=e,u=a();return(0,r.jsxs)(i.FG,{className:(0,s.Z)(l.k.wrapper.blogPages,l.k.page.blogAuthorsListPage),children:[(0,r.jsx)(i.d,{title:u}),(0,r.jsx)(o.Z,{tag:"blog_authors_list"}),(0,r.jsxs)(h.Z,{sidebar:n,children:[(0,r.jsx)(c.Z,{as:"h1",children:u}),(0,r.jsx)(p,{authors:t})]})]})}},40131:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(85893),s=n(67294),i=n(34403);function l(e){let{title:t,headingType:n,children:s}=e;return(0,r.jsxs)("div",{role:"group",children:[(0,r.jsx)(i.Z,{as:n,children:t}),s]})}let u=(0,s.memo)(function(e){let{items:t,yearGroupHeadingClassName:n,ListComponent:s}=e;return function(e,t){var n=[],s=[];function i(){if(0===s.length)return;let e=new Date(s[0].date).getFullYear(),i=function(e,t){var n=[],s=[];function i(){if(0===s.length)return;let e=s[0].title.split(":")[0];s=(s=s.map(e=>({...e,title:e.title.split(":")[1].trim()}))).reverse(),n.push((0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l,{title:e,headingType:"h4",children:(0,r.jsx)("ul",{children:(0,r.jsx)(t,{items:s})})})})),s=[]}for(let l of e){if(l.title.includes(":")){s.push(l);continue}i(),n.push((0,r.jsx)(t,{items:[l]}))}return i(),n}(s,t);n.push((0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l,{title:String(e),headingType:"h3",children:i})})),s=[]}for(let t of e){if(0===s.length){s.push(t);continue}let e=new Date(t.date).getFullYear();e!==new Date(s[0].date).getFullYear()&&i(),s.push(t)}return i(),n}(t,s)})}}]);
|