PageSourceSearch

https://swetrix.com/assets/blog._index-BfdAr5fL.js

js swetrix.com collected 2026-10-02 05:02:48 UTC 4,236 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./useTranslation-B-X6_4DZ.js";import{a as n,u as r}from"./components-B6WBbl6C.js";import{t as i}from"./Link-BK8EDMrY.js";import{t as a,ut as o}from"./jsx-runtime-BNAwhg6S.js";import{t as s}from"./CaretRight.es-Cl62N6iI.js";import{t as c,x as l}from"./Text-D0KbJur_.js";import{n as u,r as d,t as f}from"./seo-BoxQbk5j.js";import{n as p,o as m,r as h}from"./blogMetadata-Cox540VJ.js";var g=e(l(),1),_=a(),v=()=>{let{t:e}=t(`common`);return[...d(`Blog`),...f(e(`blogPage.description`)),...u(o(`The Swetrix Blog`,e(`blogPage.description`)))]},y=n(function(){let e=r()||[],{t:n}=t(`common`),a=e.filter(e=>!e.hidden);return(0,_.jsx)(`div`,{className:`bg-gray-50 py-10 text-gray-700 dark:bg-slate-950 dark:text-gray-300`,children:(0,_.jsxs)(`div`,{className:`mx-auto max-w-[52rem] px-4 pb-28 sm:px-6 md:px-8 lg:max-w-6xl xl:px-12`,children:[(0,_.jsxs)(`header`,{className:`mx-auto max-w-3xl pt-6 pb-12 text-center sm:pt-10 sm:pb-16`,children:[(0,_.jsxs)(`nav`,{"aria-label":n(`blogPage.breadcrumbLabel`),className:`mb-8 flex items-center justify-center gap-2 text-sm text-slate-500 dark:text-slate-400`,children:[(0,_.jsx)(i,{to:`/`,className:`hover:text-slate-900 dark:hover:text-white`,children:n(`blogPage.home`)}),(0,_.jsx)(s,{className:`size-3.5`,"aria-hidden":`true`}),(0,_.jsx)(`span`,{"aria-current":`page`,children:n(`footer.blog`)})]}),(0,_.jsxs)(c,{as:`h1`,weight:`bold`,tracking:`tight`,className:`text-4xl text-slate-900 sm:text-5xl dark:text-white`,children:[n(`blogPage.title`),` `,(0,_.jsx)(`span`,{"aria-hidden":`true`,children:`📚`})]}),(0,_.jsx)(`p`,{className:`mx-auto mt-5 max-w-2xl text-base leading-7 text-slate-600 sm:text-lg sm:leading-8 dark:text-slate-400`,children:n(`blogPage.description`)})]}),(0,_.jsx)(`script`,{type:`application/ld+json`,dangerouslySetInnerHTML:{__html:m([{"@context":`https://schema.org`,"@type":`CollectionPage`,"@id":`https://swetrix.com/blog#collection`,url:`https://swetrix.com/blog`,name:n(`blogPage.title`),description:n(`blogPage.description`),mainEntity:{"@type":`ItemList`,itemListElement:a.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.title,url:`https://swetrix.com${e.standalone?`/`:`/blog/`}${e.slug}`}))}},p()])}}),a.length===0&&(0,_.jsx)(`p`,{className:`text-center`,children:n(`blogPage.empty`)}),(0,_.jsxs)(`div`,{className:`relative sm:ml-[calc(2rem+1px)] sm:pb-12 md:ml-[calc(3.5rem+1px)] lg:ml-[max(calc(14.5rem+1px),calc(100%-48rem))]`,children:[(0,_.jsx)(`div`,{className:`absolute top-3 right-full bottom-0 mr-7 hidden w-px bg-slate-200 sm:block md:mr-[3.25rem] dark:bg-slate-700`}),(0,_.jsx)(`div`,{className:`space-y-16`,children:(0,g.default)(a,e=>(0,_.jsxs)(`article`,{className:`group relative`,children:[(0,_.jsx)(`svg`,{viewBox:`0 0 9 9`,className:`absolute top-2 right-full mr-6 hidden h-[calc(0.5rem+1px)] w-[calc(0.5rem+1px)] overflow-visible text-slate-200 sm:block md:mr-12 dark:text-slate-600`,children:(0,_.jsx)(`circle`,{cx:`4.5`,cy:`4.5`,r:`4.5`,stroke:`currentColor`,className:`fill-white dark:fill-slate-800`,strokeWidth:`2`})}),(0,_.jsxs)(`div`,{className:`relative`,children:[(0,_.jsx)(i,{to:e.standalone?`/${e.slug}`:e.slug,children:(0,_.jsx)(c,{as:`h2`,size:`base`,weight:`semibold`,className:`pt-8 lg:pt-0`,children:e.title})}),e.intro?(0,_.jsx)(`div`,{className:`prose mt-2 mb-4 line-clamp-3 text-sm leading-7 prose-slate dark:text-slate-400`,children:(0,_.jsx)(`p`,{children:e.intro})}):null,(0,_.jsxs)(`dl`,{className:`absolute top-0 left-0 font-mono text-sm font-medium tracking-wide uppercase lg:right-full lg:left-auto lg:mr-[calc(5rem+1px)]`,children:[(0,_.jsx)(`dt`,{className:`sr-only`,children:`Date`}),(0,_.jsx)(`dd`,{className:`text-sm leading-6 whitespace-nowrap dark:text-slate-400`,children:(0,_.jsx)(`time`,{dateTime:h(e.date),children:e.date})})]})]}),(0,_.jsx)(c,{as:`p`,size:`sm`,children:(0,_.jsxs)(i,{className:`flex max-w-max items-center text-sm font-medium underline decoration-dashed hover:decoration-solid`,to:e.standalone?`/${e.slug}`:e.slug,children:[(0,_.jsx)(`span`,{className:`relative`,children:`Read more`}),(0,_.jsx)(s,{className:`relative mt-px ml-0.5 size-3 overflow-visible`})]})})]},e.slug))})]})]})})});export{y as default,v as meta};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.