render markdown

This commit is contained in:
Nathan McCarty 2025-02-03 21:51:09 -05:00
parent 815ff4bf4e
commit addce4f87c
2 changed files with 13 additions and 8 deletions

View file

@ -10,14 +10,20 @@ method generate-post(Str:D $title, Str:D $content, BlogMeta:D $meta) {
head [
meta :charset<utf-8>;
meta :name<viewport>, :content<width=device-width, initial-scale=1>;
# meta :name<description>, :content<raku does htmx>;
title "";
title "{$meta.title} $title";
# TODO: Add style sheets
# TODO: Add description
# TODO: Add header links
];
my $body;
my $body =
body [
div :class<post-body>, [
$content
]
];
# TODO: Setup footer
# my $footer;
die "Not done yet";
my $html = html :lang<en>, [
$head,
$body