new blog structure
This commit is contained in:
parent
f465e9e367
commit
dd847ce1f9
3 changed files with 42 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue