hlfw.ca

hlfw

Download patch

ref: d9b7e3812fcf1fc16f25f922f15d4190a7a93523
parent: 68e2a143ca8976c543348fcd208966ef0367129b
author: halfwit <halfwit@hlfw.ca>
date: Thu Aug 22 21:29:25 PDT 2024

Reverse the blog order

--- a/bloglist
+++ b/bloglist
@@ -21,10 +21,12 @@
 	echo '<h2>Blogs</h2>'
 
 	udir=()
-	for(repo in `$nl{ls}){
+	echo '<nav><ul>'
+	for(repo in `$nl{ls | sort -r}){
 		## sort by year, then strip the .md out
 		name=`{echo $repo | sed 's/\.md//'}
-		echo '<dt><a href="/blog/'$name'.html">'$name'</a></dt>'
+		echo '<li><a href="/blog/'$name'.html">'$name'</a></li>'
 		
 	}
+	echo '</nav></ul>'
 } | tee $tcache && mv $tcache $cache