X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biawebdocumenttree.hpp;fp=biawebdocumenttree.hpp;h=0aba119b40382257069b80067924d4b9b8a8f996;hp=53023f1f5724730372b6be7dd2e5ddf1ba0e31a1;hb=bfdbd4a6df9232fb6b7f7754903584167b620fe4;hpb=4f787d18286fb9a4c5a36d802860c42c9f862854 diff --git a/biawebdocumenttree.hpp b/biawebdocumenttree.hpp index 53023f1..0aba119 100644 --- a/biawebdocumenttree.hpp +++ b/biawebdocumenttree.hpp @@ -248,11 +248,8 @@ namespace biaweb { // If the items don't exceed max size of RSS feed if (feed.get()->get_num_items() <= MAX_RSS_FEED) feed.get()->add_rss_item (fitem); - // Add the document to the document list - DocListItem item (doc.get_title(), - urlpath + doc.get_filename() + ".html", - doc.get_creation_date(), doc.get_modified_date (), - doc.get_meta_desc()); + // Add the document details to the document list + DocListItem item (&doc, urlpath); article_list.get()->add_document_item (item); // output the document also, add the navigation bit and side bars @@ -275,14 +272,17 @@ namespace biaweb { std::unique_ptr bar3 (new SideBar ()); bar3.get()->set_title (tpl->get_stringbit (SUBSCRIBE)); bar3.get()->add_sidebar_item ( - GenericLinkItem (tpl->get_stringbit(RSS_FEED), urlpath + "/feed.xml")); + GenericLinkItem (tpl->get_stringbit(RSS_FEED), urlpath + "feed.xml")); index.get()->add_side_bar (*bar3.get()); } // add the navigation bit index.get()->set_navigation_bit (*navbit.get()); - // index should contain the summary followed by the article list - index.get()->set_content (this->summary + article_list.get()->to_html(tpl)); + // index should contain the summary followed by the the article list + // and the sub categories + index.get()->set_content (this->summary + + article_list.get()->to_html(tpl) + + bar2.get()->to_html (tpl)); // output the index file index.get()->output_to_html (tpl, filepath);