From e2aa7f4ce8013d738a5bce8e9671bd5a244e28ab Mon Sep 17 00:00:00 2001 From: luca0N! Date: Wed, 27 Apr 2022 19:27:18 -0300 Subject: [PATCH] Generate blog catalog file WebsiteBuilder now generates blog catalog files, containing a catalog of articles for each blog. --- src/Article.cxx | 1 - src/WebsiteBuilder.cxx | 22 ++++++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/Article.cxx b/src/Article.cxx index df7650f..6f331af 100644 --- a/src/Article.cxx +++ b/src/Article.cxx @@ -104,7 +104,6 @@ namespace Article { bool reading_article_metadata = false; for (std::string const &line : cfg_lines) { - std::cout << "[!] Line: " << line << "\n"; // Check namespace if (reading_article_metadata) { std::string k_title = "Title=", diff --git a/src/WebsiteBuilder.cxx b/src/WebsiteBuilder.cxx index 37d584f..8e8afa0 100644 --- a/src/WebsiteBuilder.cxx +++ b/src/WebsiteBuilder.cxx @@ -189,7 +189,7 @@ void build_blog_structure(std::string const &path, std::string const &prefix, st // Sort am list. am.sort(Article::Comparator::comp); // Generate blog catalog. - std::string blog_html_catalog = "