Generate tags page
This commit is contained in:
parent
f1515aab06
commit
20ecef3b3f
4 changed files with 138 additions and 3 deletions
|
@ -105,6 +105,9 @@ class PostDB {
|
|||
my $about-path = $out-dir.add('about.html');
|
||||
$about-path.unlink if $about-path.l;
|
||||
$by-id.add("{$!meta.about-id}.html").symlink: $about-path;
|
||||
# Generate the tags pages
|
||||
my @tags = %!posts.values.map(*.tags).flat.unique;
|
||||
$out-dir.add('tags.html').spurt: $config.generate-tags-page(self, @tags);
|
||||
# Render the rss/atom feed
|
||||
my $atom-path = $out-dir.add('atom.xml');
|
||||
my $atom = posts-to-atom self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue