Revert "dynamic: DynamicContentPostList: Link using UrlProvider::pageByTitle()"

This reverts commit 9b35e43161.
This commit is contained in:
Albert S. 2022-03-29 22:45:17 +02:00
부모 9b35e43161
커밋 91951abe9c
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@ -25,13 +25,12 @@ std::string DynamicContentPostList::render()
stream << postListBegin;
for(auto &pair : pageList)
{
std::string title = pageDao->find(pair.first)->title;
std::string link = this->urlProvider->pageByTitle(title);
std::string link = this->urlProvider->page(pair.first);
std::string date = utils::toISODate(pair.second);
Varreplacer replacer{"{"};
replacer.addKeyValue("url", link);
replacer.addKeyValue("date", date);
replacer.addKeyValue("title", title);
replacer.addKeyValue("title", pageDao->find(pair.first)->title);
stream << replacer.parse(postLink);
}