changeset 27:b1eb4c8848fa

index: display story category tags
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 05 Feb 2009 16:25:35 -0500
parents 18373c0707b8
children b49d82726a99
files html.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/html.c	Thu Feb 05 16:25:19 2009 -0500
+++ b/html.c	Thu Feb 05 16:25:35 2009 -0500
@@ -90,6 +90,7 @@
 		return;
 
 	cat(&p, NULL, "templates/story-top.html", repltab_story_html);
+	__invoke_for_each_post_cat(&p, __story_cat_item);
 	cat(&p, NULL, "templates/story-middle.html", repltab_story_html);
 	cat_post(&p);
 	cat(&p, NULL, "templates/story-bottom.html", NULL);
@@ -174,7 +175,8 @@
 	if (!dir)
 		return;
 
-	sorted_readdir_loop(dir, post, __each_cat_helper, plist, SORT_ASC, -1);
+	sorted_readdir_loop(dir, post, __each_cat_helper, plist,
+			    SORT_ASC | SORT_STRING, -1);
 
 	closedir(dir);
 }