mirror of
https://github.com/bspeice/speice.io
synced 2025-01-13 11:10:15 -05:00
1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
|
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["9499"],{68141:function(e,t,a){a.d(t,{wj:()=>r,cH:()=>M,CS:()=>v,iZ:()=>f,nO:()=>h,n4:()=>c,Ne:()=>N});var s=a("85893"),i=a("67294"),l=a("11934"),n=a("69685");function r(){let e=(0,n.Z)(),t=e?.data?.blogMetadata;if(!t)throw Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}let o=i.createContext(null);function c(e){let{children:t,content:a,isBlogPostPage:l=!1}=e,n=function(e){let{content:t,isBlogPostPage:a}=e;return(0,i.useMemo)(()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:a}),[t,a])}({content:a,isBlogPostPage:l});return(0,s.jsx)(o.Provider,{value:n,children:t})}function h(){let e=(0,i.useContext)(o);if(null===e)throw new l.i6("BlogPostProvider");return e}var m=a("83187"),d=a("87262");let u=e=>new Date(e).toISOString();function g(e){let t=e.map(p);return{author:1===t.length?t[0]:t}}function x(e,t,a){return e?{image:function(e){let{imageUrl:t,caption:a}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:a}}({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${a}`})}:{}}function v(e){let{siteConfig:t}=(0,d.Z)(),{withBaseUrl:a}=(0,m.Cg)(),{metadata:{blogDescription:s,blogTitle:i,permalink:l}}=e,n=`${t.url}${l}`;return{"@context":"https://schema.org","@type":"Blog","@id":n,mainEntityOfPage:n,headline:i,description:s,blogPost:e.items.map(e=>(function(e,t,a){let{assets:s,frontMatter:i,metadata:l}=e,{date:n,title:r,description:o,lastUpdatedAt:c}=l,h=s.image??i.image,m=i.keywords??[],d=`${t.url}${l.permalink}`,v=c?u(c):void 0;return{"@type":"BlogPosting","@id":d,mainEntityOfPage:d,url:d,headline:r,name:r,description:o,datePublished:n,...v?{dateModified:v}:{},...g(l.authors),...x(h,a,r),...m?{keywords:m}:{}}})(e.content,t,a))}}function f(){let e=r(),{assets:t,metadata:a}=h(),{siteConfig:s}=(0,d.Z)(),{withBaseUrl:i}=(0,m.Cg)(),{date:l,title:n,description:o,frontMatter:c,lastUpdatedAt:v}=a,f=t.image??c.image,p=c.keywords??[],w=v?u(v):void 0,j=`${s.url}${a.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":j,mainEntityOfPage:j,url:j,headline:n,name:n,description:o,datePublished:l,...w?{dateModified:w}:{},...g(a.authors),...x(f,i,n),...p?{keywords:p}:{},isPartOf:{"@type":"Blog","@id":`${s.url}${e.blogBasePath}`,name:e.blogTitle}}}function p(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}var w=a("16550"),j=a("53367"),b=a("23868");function M(e){let{pathname:t}=(0,w.TH)();return(0,i.useMemo)(()=>e.filter(e=>!e.unlisted||!!(0,b.Mg)(e.permalink,t)),[e,t])}function N(e){let{items:t,ulClassName:a,liClassName:i,linkClassName:l,linkActiveClassName:n}=e;return(0,s.jsx)("ul",{className:a,children:t.map(e=>(0,s.jsx)("li",{className:i,children:(0,s.jsx)(j.Z,{isNavLink:!0,to:e.permalink,className:l,activeClassName:n,children:e.title})},e.permalink))})}},76230:function(e,t,a){a.d(t,{Z:()=>p});var s=a("85893"),i=a("67294"),l=a("67026"),n=a("53367");let r=function(e){return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,s.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,s.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,s.jsx)("path",{d:"M3.6 9h16.8"}),(0,s.jsx)("path",{d:"M3.6 15h16.8"}),(0,s.jsx)("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),(0,s.jsx)("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]})},o="authorSocialLink_owbf",c={twitter:{Icon:function(e){return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 209",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid",...e,children:(0,s.jsx)("path",{d:"M256 25.45c-9.42 4.177-19.542 7-30.166 8.27 10.845-6.5 19.172-16.793 23.093-29.057a105.183 105.183 0 0 1-33.351 12.745C205.995 7.201 192.346.822 177.239.822c-29
|