finalises first pass of work on BlogPageBuilder.

Project can now build the webpages required!
additionally adds some example blog posts from my old website
This commit is contained in:
Rosia E Evans 2023-09-23 13:55:41 +01:00
parent d7a080b47a
commit d0298d9493
133 changed files with 2355 additions and 3808 deletions

View file

@ -9,11 +9,9 @@
int main()
{
BlogPageBuilder* builder = new BlogPageBuilder(RESOURCE_FOLDER "/Templates/BlogPageTemplate.html");
std::string result = builder->createPage(TEST_RESOURCE_FOLDER "/TestFullArticle.md");
BlogPageBuilder* builder = new BlogPageBuilder(RESOURCE_FOLDER "/Templates/BlogPageTemplate.html",
SOURCE_FILE_FOLDER, OUTPUT_FILE_FOLDER);
builder->buildAllPages();
std::ofstream file(RESOURCE_FOLDER "/output.html");
file << result;
file.close();
}