SPA
This commit is contained in:
parent
c51dd48a73
commit
937b9fb48f
9 changed files with 180 additions and 90 deletions
|
|
@ -14,15 +14,18 @@ using namespace Crafter;
|
|||
export namespace Catcrafts {
|
||||
struct BlogPost {
|
||||
std::string name;
|
||||
std::string slug;
|
||||
std::string date;
|
||||
std::string content;
|
||||
};
|
||||
std::vector<BlogPost>* posts = new std::vector<BlogPost>{
|
||||
{
|
||||
"Hello World!",
|
||||
"hello-world",
|
||||
"2025-11-12",
|
||||
R"(Welcome to catcrafts.net!<br><br> This blog will mostly be dedicated to random tidbits i come across while working on my Crafter series of libraries, This website is fully written in C++ using the Crafter.CppDOM library.)"
|
||||
}
|
||||
};
|
||||
std::string RenderBlog();
|
||||
void RenderBlog();
|
||||
void RenderBlogPost(const std::string_view slug);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue