Generate pages for individual tags
This commit is contained in:
parent
20ecef3b3f
commit
2072f88711
4 changed files with 35 additions and 7 deletions
|
@ -370,6 +370,22 @@ method generate-tags-page($db, @tags) {
|
|||
"<!doctype html>$html"
|
||||
}
|
||||
|
||||
method generate-tag-page($db, $tag) {
|
||||
my $head = self.generate-head(Nil, $db.meta);
|
||||
my $body = body [
|
||||
self.site-header: $db.meta;
|
||||
self.generate-tag-blurb($db, $tag, 4);
|
||||
];
|
||||
|
||||
my $html =
|
||||
html :lang<en>, [
|
||||
$head,
|
||||
$body
|
||||
];
|
||||
|
||||
"<!doctype html>$html"
|
||||
}
|
||||
|
||||
sub icon($icon) {
|
||||
i(:class("bx bx-$icon"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue