Fixes bug from optimisation where deepest category was incorrectly calculated leading to misplaced pages in nav bar
This commit is contained in:
parent
8cfcf1a721
commit
7b7f967d74
10 changed files with 9 additions and 21 deletions
|
@ -59,15 +59,6 @@ std::string Page::getInUrl()
|
|||
return sourceFileUrl;
|
||||
}
|
||||
|
||||
// includes first /
|
||||
std::string Page::getRelativeInUrl()
|
||||
{
|
||||
int start = strlen(SOURCE_FILE_FOLDER)+1;
|
||||
std::string relativeUrl = std::string(sourceFileUrl).substr(start, sourceFileUrl.length()-start);
|
||||
relativeUrl.replace(relativeUrl.length()-3, 3, ".html");
|
||||
return relativeUrl;
|
||||
}
|
||||
|
||||
FileFlags Page::getPageFlags()
|
||||
{
|
||||
return flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue