minor bugfix where draft pages were being seen in rss feed

This commit is contained in:
Rosia E Evans 2024-08-08 12:39:22 +01:00
parent fff6d43a40
commit 4c30b54b75

View file

@ -40,10 +40,11 @@ void Program::buildAll()
page->setOutFileContents(blogPageBuilder->createPage(articleHTML));
page->writePageToFile();
atomBuilder->addHTMLEntry(articleHTML,
page->getPageTitle(),
siteWebUrl + page->getRelativeOutUrl(),
page->getLastTimeEdited());
if (!page->getPageFlags().alwaysHidden)
atomBuilder->addHTMLEntry(articleHTML,
page->getPageTitle(),
siteWebUrl + page->getRelativeOutUrl(),
page->getLastTimeEdited());
}
atomBuilder->writeToFile(outFolderUrl);