render markdown
This commit is contained in:
parent
815ff4bf4e
commit
addce4f87c
2 changed files with 13 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue