@@ -52,48 +52,41 @@ <h3 class="font-mono font-bold mb-2">Build-Time Validation</h3>
5252 </ div >
5353 </ div >
5454
55- <!-- Articles Section -->
55+ <!-- Latest Articles Teaser -->
5656 {{if .Articles}}
5757 < div >
58- < div class ="flex items-center gap-2 text-emerald-400 text-sm mb-4 font-mono ">
59- < span class ="text-gray-500 "> $</ span >
60- < span > ls -la articles/</ span >
61- </ div >
62- < div class ="text-gray-500 text-xs font-mono pb-2 border-b border-gray-800 ">
63- total {{len .Articles}}
58+ < div class ="flex items-center justify-between mb-4 ">
59+ < div class ="flex items-center gap-2 text-emerald-400 text-sm font-mono ">
60+ < span class ="text-gray-500 "> $</ span >
61+ < span > ls articles/ | head -3</ span >
62+ </ div >
63+ < a href ="/blog/ " class ="text-sm font-mono text-gray-400 hover:text-emerald-400 transition-colors ">
64+ view all →
65+ </ a >
6466 </ div >
65- < div class ="space-y-4 mt-4 ">
66- {{range .Articles}}
67+ < div class ="space-y-4 ">
68+ {{range $i, $a := .Articles}}{{if lt $i 3 }}
6769 < article class ="group py-4 border-b border-gray-800 hover:bg-gray-900/50 transition-colors -mx-4 px-4 ">
6870 < div class ="flex items-start gap-4 ">
6971 < div class ="text-gray-500 text-xs font-mono whitespace-nowrap pt-1 ">
70- {{.FormattedDate}}
72+ {{$a .FormattedDate}}
7173 </ div >
7274 < div class ="flex-1 min-w-0 ">
7375 < h2 class ="text-lg font-mono mb-1 ">
74- < a href ="{{.URL}} " class ="text-white hover:text-emerald-400 transition-colors ">
75- {{.Title}}
76+ < a href ="{{$a .URL}} " class ="text-white hover:text-emerald-400 transition-colors ">
77+ {{$a .Title}}
7678 </ a >
7779 </ h2 >
78- {{if .SEODescription}}
79- < p class ="text-gray-400 text-sm line-clamp-2 "> {{.SEODescription}}</ p >
80+ {{if $a .SEODescription}}
81+ < p class ="text-gray-400 text-sm line-clamp-2 "> {{$a .SEODescription}}</ p >
8082 {{end}}
81- < div class ="flex items-center gap-4 mt-2 text-xs text-gray-500 font-mono ">
82- {{if .Author}}< span > @{{.Author}}</ span > {{end}}
83- {{if .ReadingTime}}< span > ~{{.ReadingTime}}m</ span > {{end}}
84- {{if .Tags}}
85- < div class ="flex gap-1 ">
86- {{range .Tags}}< span class ="text-emerald-600 "> #{{.}}</ span > {{end}}
87- </ div >
88- {{end}}
89- </ div >
9083 </ div >
91- < a href ="{{.URL}} " class ="text-emerald-400 opacity-0 group-hover:opacity-100 transition-opacity font-mono text-sm ">
84+ < a href ="{{$a .URL}} " class ="text-emerald-400 opacity-0 group-hover:opacity-100 transition-opacity font-mono text-sm ">
9285 →
9386 </ a >
9487 </ div >
9588 </ article >
96- {{end}}
89+ {{end}}{{end}}
9790 </ div >
9891 </ div >
9992 {{end}}
0 commit comments