changeset 56:901674ccbbe8

feed: a makeshift feed instead of doing a preview, we just dump the whole thing
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 02 Apr 2009 21:04:15 -0400
parents b58bc13b5192
children 826a948ef5b2
files html.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/html.c	Wed Feb 25 17:59:16 2009 -0500
+++ b/html.c	Thu Apr 02 21:04:15 2009 -0400
@@ -62,6 +62,11 @@
 	cat(post, catname, "templates/story-cat-item.html", repltab_cat_html);
 }
 
+static void __story_cat_item_feed(struct post *post, char *catname)
+{
+	cat(post, catname, "templates/story-cat-item.atom", repltab_cat_html);
+}
+
 void html_story(struct post *post)
 {
 	cat(post, NULL, "templates/story-top.html", repltab_story_html);
@@ -124,12 +129,13 @@
 		return;
 
 	cat(&p, NULL, "templates/story-top.atom", repltab_story_html);
-	//__invoke_for_each_post_cat(&p, __story_cat_item);
+	__invoke_for_each_post_cat(&p, __story_cat_item_feed);
 	cat(&p, NULL, "templates/story-middle-desc.atom", repltab_story_html);
 	//cat_post_preview(&p);
+	cat_post(&p);
 	cat(&p, NULL, "templates/story-bottom-desc.atom", repltab_story_html);
 	cat(&p, NULL, "templates/story-middle.atom", repltab_story_html);
-	//cat_post(&p);
+	cat_post(&p);
 	cat(&p, NULL, "templates/story-bottom.atom", NULL);
 
 	destroy_post(&p);