removed blog page template
This commit is contained in:
commit
8e3d1557a8
3 changed files with 2 additions and 6 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -32,6 +32,6 @@
|
|||
*.app
|
||||
|
||||
#CMake
|
||||
build/
|
||||
Resources/Output/
|
||||
build/*
|
||||
Resources/Output/*
|
||||
|
||||
|
|
|
@ -109,8 +109,6 @@ std::string NavBarGenerator::insertPagesIntoCategories(std::string categories, s
|
|||
int insertLocation = 0;
|
||||
if (categoryStart != -1)
|
||||
insertLocation = categories.find(categoryOpening, categoryStart) + categoryOpening.length();
|
||||
else
|
||||
insertLocation = navHeader.length();
|
||||
|
||||
|
||||
categories.insert(insertLocation, item);
|
||||
|
@ -123,7 +121,6 @@ std::string NavBarGenerator::generateNavSection(std::vector<Page*> pages, std::s
|
|||
{
|
||||
this->options = options;
|
||||
std::string buffer;
|
||||
buffer.append(navHeader);
|
||||
buffer.append(generateCategories(sourceFolderUrl));
|
||||
buffer = insertPagesIntoCategories(buffer, pages);
|
||||
return buffer;
|
||||
|
|
|
@ -24,7 +24,6 @@ enum OptionFlags
|
|||
class NavBarGenerator
|
||||
{
|
||||
private:
|
||||
std::string navHeader = "\n<h1>Navigation</h1>\n\n";
|
||||
int options;
|
||||
|
||||
std::string generateCategories(std::string rootFolderUrl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue