mirror of
https://github.com/bspeice/speice.io
synced 2024-11-14 22:18:10 -05:00
1 line
3.0 KiB
JavaScript
1 line
3.0 KiB
JavaScript
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["8514"],{1434:function(e,t,n){n.r(t),n.d(t,{default:()=>v});var i=n("5893");n("7294");var r=n("7026"),l=n("2933"),s=n("2743"),a=n("4681"),o=n("979"),c=n("6025"),u=n("790");function p(e){let{metadata:t}=e,{previousPage:n,nextPage:r}=t;return(0,i.jsxs)("nav",{className:"pagination-nav","aria-label":(0,c.I)({id:"theme.blog.paginator.navAriaLabel",message:"Blog list page navigation",description:"The ARIA label for the blog pagination"}),children:[n&&(0,i.jsx)(u.Z,{permalink:n,title:(0,i.jsx)(c.Z,{id:"theme.blog.paginator.newerEntries",description:"The label used to navigate to the newer blog posts page (previous page)",children:"Newer entries"})}),r&&(0,i.jsx)(u.Z,{permalink:r,title:(0,i.jsx)(c.Z,{id:"theme.blog.paginator.olderEntries",description:"The label used to navigate to the older blog posts page (next page)",children:"Older entries"}),isNext:!0})]})}var d=n("4315"),g=n("4183"),h=n("2553");function x(e){let{items:t,component:n=h.Z}=e;return(0,i.jsx)(i.Fragment,{children:t.map(e=>{let{content:t}=e;return(0,i.jsx)(g.n4,{content:t,children:(0,i.jsx)(n,{children:(0,i.jsx)(t,{})})},t.metadata.permalink)})})}var j=n("4819");function f(e){let t=(0,g.CS)(e);return(0,i.jsx)(j.Z,{children:(0,i.jsx)("script",{type:"application/ld+json",children:JSON.stringify(t)})})}function m(e){let{metadata:t}=e,{siteConfig:{title:n}}=(0,l.Z)(),{blogDescription:r,blogTitle:a,permalink:o}=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.d,{title:"/"===o?n:a,description:r}),(0,i.jsx)(d.Z,{tag:"blog_posts_list"})]})}function b(e){let{metadata:t,items:n,sidebar:r}=e;return(0,i.jsxs)(o.Z,{sidebar:r,children:[(0,i.jsx)(x,{items:n}),(0,i.jsx)(p,{metadata:t})]})}function v(e){return(0,i.jsxs)(s.FG,{className:(0,r.Z)(a.k.wrapper.blogPages,a.k.page.blogListPage),children:[(0,i.jsx)(m,{...e}),(0,i.jsx)(f,{...e}),(0,i.jsx)(b,{...e})]})}},131:function(e,t,n){n.d(t,{Z:function(){return a}});var i=n(5893),r=n(7294),l=n(4403);function s(e){let{title:t,headingType:n,children:r}=e;return(0,i.jsxs)("div",{role:"group",children:[(0,i.jsx)(l.Z,{as:n,children:t}),r]})}let a=(0,r.memo)(function(e){let{items:t,yearGroupHeadingClassName:n,ListComponent:r}=e;return function(e,t){var n=[],r=[];function l(){if(0===r.length)return;let e=new Date(r[0].date).getFullYear(),l=function(e,t){var n=[],r=[];function l(){if(0===r.length)return;let e=r[0].title.split(":")[0];r=(r=r.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:r})})})})),r=[]}for(let s of e){if(s.title.includes(":")){r.push(s);continue}l(),n.push((0,i.jsx)(t,{items:[s]}))}return l(),n}(r,t);n.push((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s,{title:String(e),headingType:"h3",children:l})})),r=[]}for(let t of e){if(0===r.length){r.push(t);continue}let e=new Date(t.date).getFullYear();e!==new Date(r[0].date).getFullYear()&&l(),r.push(t)}return l(),n}(t,r)})}}]); |