Moves navbar generation to its own class and adds ordering of categories

This commit is contained in:
Rosia E Evans 2023-10-11 10:35:27 +01:00
parent e514df19fb
commit 5765d04fe6
12 changed files with 88 additions and 41 deletions

View file

@ -65,9 +65,9 @@ int main(int argc, char* argv[])
std::string output = getArgValue(argc, argv, "-out=");
if (output == "")
output = OUTPUT_FILE_FOLDER;
int flags = BlogPageBuilder::OptionFlags::NONE;
int flags = OptionFlags::NONE;
if (doesArgExist(argc, argv, "-hide"))
flags |= BlogPageBuilder::OptionFlags::HIDE_PRIVATE;
flags |= OptionFlags::HIDE_PRIVATE;
// generated pages
BlogPageBuilder* builder = new BlogPageBuilder(RESOURCE_FOLDER "/Templates/BlogPageTemplate.html", source, output, flags);