Page: Add 'title' column, storing title of last revision

此提交包含在:
2022-03-27 09:23:35 +02:00
父節點 ac793c6d39
當前提交 f7cf06cdd5
共有 5 個檔案被更改,包括 17 行新增8 行删除

查看文件

@@ -34,7 +34,7 @@ std::string DynamicContentPostList::render()
Varreplacer replacer{"{"};
replacer.addKeyValue("url", link);
replacer.addKeyValue("date", date);
replacer.addKeyValue("page", pair.first);
replacer.addKeyValue("title", pageDao->find(pair.first)->title);
stream << replacer.parse(postLink);
}