aboutsummaryrefslogtreecommitdiff
path: root/src/content/blog/Blog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/blog/Blog.hpp')
-rw-r--r--src/content/blog/Blog.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/content/blog/Blog.hpp b/src/content/blog/Blog.hpp
index 086acc7..970c7fd 100644
--- a/src/content/blog/Blog.hpp
+++ b/src/content/blog/Blog.hpp
@@ -2,15 +2,17 @@
#define BLOG_H 1
#include "../../Content.hpp"
+#include "../../Filesystem.hpp"
+#include "../markdown/Markdown.hpp"
class Blog : public Content
{
public:
- explicit Blog(std::string uriBasePath, std::string mainTemplatePath);
+ explicit Blog(std::string uriBasePath, std::string mainTemplatePath, std::string blogPath);
bool Init();
void Shutdown();
- bool Render(RequestResponse & rr, RenderData & rd);
+ bool Render(RequestResponse & rr, RenderData & rd, std::string & out);
std::string const & GetUriBasePath() const;
std::string const & GetMainTemplate() const;
@@ -19,7 +21,10 @@ public:
private:
std::string m_UriBasePath;
std::string m_MainTemplatePath;
+ std::string m_BlogPath;
Redirections m_Redirections;
+ Filesystem m_BlogEntriesMetadata;
+ Markdown m_BlogEntries;
};
#endif