PageSourceSearch

https://code2life.top/assets/blog.md.5Mq84PIF.lean.js

js code2life.top collected 2026-10-04 05:55:20 UTC 1,925 bytes, 1 lines download raw bytes

1import{d as h,I as w}from"./chunks/theme.DVtnmTvg.js";import{M as k,cl as B,aK as t,u as n,v as l,H as y,I as _,bi as d,b9 as c,t as V,F as u,aV as f,aX as D,bH as N}from"./chunks/framework.CiGnms68.js";const F={class:"flex items-center gap-2"},I={key:0,class:"mt-8"},O=["href"],P=["onClick"],S=k({__name:"VBlog",setup(v){var b;const g=B(),a=new URL(window.location.href).searchParams.get("tag"),r={};for(const o in h){const e=(b=h[o])==null?void 0:b.filter(s=>!a||s.tags.includes(a));e&&e.length>0&&(r[o]=e)}const C=Object.keys(r).reverse(),x=o=>new Date(o).toLocaleDateString("en-US",{month:"short",day:"2-digit"});function p(o){o?g.go(`/blog?tag=${encodeURIComponent(o)}`):g.go("/blog"),setTimeout(()=>{location.reload()},20)}return(o,e)=>(t(),n("div",null,[l("section",null,[l("h1",F,[e[1]||(e[1]=y(" Joey Yang's blogs ")),_(d(w),{class:"inline text-[--vp-c-brand-1]","aria-hidden":"true",icon:"tabler:book-2"})])]),d(a)?(t(),n("div",I,[e[2]||(e[2]=l("span",{style:{"font-weight":"500"}},"Filtered by Tag:",-1)),e[3]||(e[3]=y()),l("a",{class:"blog-tag",id:"clean-filter",onClick:e[0]||(e[0]=s=>p())},c(d(a)),1)])):V("",!0),(t(!0),n(u,null,f(d(C),s=>(t(),n(u,{key:s},[l("h2",null,c(s),1),l("ul",null,[(t(!0),n(u,null,f(r[s],i=>(t(),n("li",{key:i.url},[l("article",null,[l("a",{style:{"margin-right":"4px"},href:i.url,class:"border-none"},c(x(i.date))+"   "+c(i.title),9,O),(t(!0),n(u,null,f(i.tags,m=>(t(),n("a",{class:"blog-tag",style:{"border-bottom":"none"},key:m,onClick:$=>p(m)},c(m),9,P))),128))])]))),128))])],64))),128))]))}}),U=JSON.parse('{"title":"Blog","description":"","frontmatter":{"layout":"doc","title":"Blog","aside":true,"comments":false,"progress":false},"headers":[],"relativePath":"blog.md","filePath":"blog.md"}'),T={name:"blog.md"},H=k({...T,setup(v){return(g,a)=>{const r=D("ClientOnly");return t(),n("div",null,[_(r,null,{default:N(()=>[_(S)]),_:1})])}}});export{U as __pageData,H as default};

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.