new blog structure

This commit is contained in:
Jorijn van der Graaf 2025-11-12 22:40:33 +01:00
commit dd847ce1f9
3 changed files with 42 additions and 2 deletions

View file

@ -61,10 +61,11 @@ export namespace Catcrafts {
}
void RenderBlogPost(const std::string_view slug) {
std::cout << "render "<< std::endl;
for(const BlogPost& post : *posts) {
if(post.slug == slug) {
main->SetInnerHTML(std::format(R"(
<div class="post fade-in">
<div class="blog-post-page">
<div class="post-header">
<h1 class="post-title">{}</h1>
<span class="post-date">{}</span>