@@ -17,32 +17,29 @@ const featuredCourses = representativeDirectories.flatMap(directory => {
1717 const course = courses .find (course => course .sourceDirectory === directory );
1818 return course ? [course ] : [];
1919});
20- const courseCounts = new Map (courses .map (course => [course .slug , posts .filter (post => post .course === course .slug ).length ]));
2120const descriptions: Record <string , string > = {
22- ' 与 AI 一起工作' : ' 从任务、上下文与权限,到 Agent 协作、评测和科研 。' ,
23- ' 玩转时序数据集' : ' 用 TsFile、IoTDB 与工具链理解、访问和验证时序数据 。' ,
24- ' 基准测试方法与实践' : ' 工作负载、测试工具与性能结果背后的方法 。' ,
21+ ' 与 AI 一起工作' : ' AI 工具、 Agent 协作、评测与科研实践 。' ,
22+ ' 玩转时序数据集' : ' TsFile、IoTDB、数据访问与常用工具 。' ,
23+ ' 基准测试方法与实践' : ' 工作负载设计、测试工具与性能结果分析 。' ,
2524};
2625---
2726<SiteLayout >
2827 <div class =" container" >
29- <section class =" hero" >
30- <p class =" eyebrow" >LEARNING · BUILDING · RESEARCHING</p >
31- <h1 >让实践留下思考,<br /><span >让思考连接下一步。</span ></h1 >
32- <p class =" hero-description" >我是 SpriCoder。在这里记录数据库、时序数据与 AI 协作的学习和实践,也把积累的计算机与软件工程课程笔记整理成可循序阅读的专题。</p >
33- <div class =" hero-actions" ><a class =" button" href =" /courses/" >按课程阅读 <span aria-hidden =" true" >↗</span ></a ><a class =" text-link" href =" /series/" >全部专题 →</a ><a class =" text-link" href =" /about/" >关于我 →</a ></div >
34- <div class =" hero-stats" ><span ><strong >{ posts .length } </strong > 篇文章</span ><span ><strong >{ courses .length } </strong > 门课程笔记</span ><span ><strong >{ series .length } </strong > 个技术系列</span ><span >自 <strong >2019</strong > 年记录</span ></div >
28+ <section class =" home-intro" >
29+ <h1 >SpriCoder 的博客</h1 >
30+ <p >这里记录我在数据库、时序数据和 AI 工具方面的学习与实践。</p >
3531 </section >
36- <section class =" home-section" >
37- <div class =" section-heading" ><div >< p class = " eyebrow " >COURSE NOTES</ p >< h2 >从一门课程,重温一组知识</ h2 ></ div >< a class =" text-link" href =" /courses /" >全部课程 → </a ></div >
38- <div class =" course-feature- grid" >{ featuredCourses .map (course => <a class = " course-feature " href = { ` /courses /${course . slug }/ ` } ><span class = " course-feature-domain " > { course . domain } · { course . year } </ span >< h3 >{ course . name } </h3 ><p >{ course . description } </p ><span class = " course-feature -meta" >{ courseCounts . get ( course . slug ) } 篇笔记 < span aria-hidden = " true " >↗</ span > </span ></a >)} </div >
32+ <section class =" home-section" aria-labelledby = " technical-series " >
33+ <div class =" section-heading" ><h2 id = " technical-series " >技术系列</ h2 >< a class =" text-link" href =" /series /" >全部专题 </a ></div >
34+ <div class =" series- grid" >{ series .map (name => <a class = " series-card " href = { ` /series /${seriesSlug ( name ) }/ ` } ><h3 >{ name } </h3 ><p >{ descriptions [ name ] } </p ><span class = " series-card -meta" >{ posts . filter ( post => post . series === name ). length } 篇文章 </span ></a >)} </div >
3935 </section >
40- <section class =" home-section" >
41- <div class =" section-heading" ><div ><p class =" eyebrow" >TECHNICAL SERIES</p ><h2 >沿着一个问题,读一个系列</h2 ></div ><a class =" text-link" href =" /series/#technical-series" >技术系列 →</a ></div >
42- <div class =" series-grid" >{ series .map ((name , index ) => <a class = " series-card" href = { ` /series/${seriesSlug (name )}/ ` } ><span class = " series-number" >0{ index + 1 } </span ><h3 >{ name } </h3 ><p >{ descriptions [name ]} </p ><span class = " series-card-meta" >{ posts .filter (post => post .series === name ).length } 篇文章 <span aria-hidden = " true" >↗</span ></span ></a >)} </div >
43- </section >
44- <section class =" home-section" >
45- <div class =" section-heading" ><div ><p class =" eyebrow" >LATEST WRITING</p ><h2 >最近的记录</h2 ></div ><a class =" text-link" href =" /archives/" >完整归档 →</a ></div >
36+ <nav class =" home-courses" aria-label =" 课程笔记" >
37+ <span class =" home-courses-label" >课程笔记</span >
38+ { featuredCourses .map (course => <a href = { ` /courses/${course .slug }/ ` } >{ course .name .replace (/ \s * (\d {4} )$ / , ' ' )} </a >)}
39+ <a class =" home-courses-all" href =" /courses/" >全部课程 →</a >
40+ </nav >
41+ <section class =" home-section" aria-labelledby =" latest-posts" >
42+ <div class =" section-heading" ><h2 id =" latest-posts" >最新文章</h2 ><a class =" text-link" href =" /archives/" >全部文章</a ></div >
4643 <div class =" post-list" >{ posts .slice (0 , 10 ).map (post => <PostCard post = { post } />)} </div >
4744 </section >
4845 </div >
0 commit comments