From 7eb540099ea894198836f981f1de33138159ee18 Mon Sep 17 00:00:00 2001 From: luca0N! Date: Thu, 3 Mar 2022 18:39:30 -0300 Subject: [PATCH] Fix output directory structure builds Fixed a bug which created multiple subdirectories with blogs containing more than one article. --- src/WebsiteBuilder.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WebsiteBuilder.cxx b/src/WebsiteBuilder.cxx index 48c9edc..5e420a4 100644 --- a/src/WebsiteBuilder.cxx +++ b/src/WebsiteBuilder.cxx @@ -134,7 +134,8 @@ void build_blog_structure(std::string const &path, std::string const &prefix, st // directories later as needed. try { // Create directory for the year of this article if it doesn't exist. - std::filesystem::path oad = obp /= year; // Output Article Directory + std::filesystem::path oad = obp; + oad /= year; // Output Article Directory if (!std::filesystem::exists(oad)) std::filesystem::create_directory(oad); // Do the same for the article month.