uninline stylesheets

This commit is contained in:
Nathan McCarty 2025-02-06 18:45:15 -05:00
parent b1ec578902
commit 550c4613e7
2 changed files with 13 additions and 4 deletions

View file

@ -103,6 +103,12 @@ class PostDB {
my $atom-path = $out-dir.add('atom.xml');
my $atom = posts-to-atom self;
$atom-path.spurt: format-xml(~$atom);
# Create the resources folder and copy over our style sheets
my $res-dir = $out-dir.add('resources/');
mkdir $res-dir unless $res-dir.e;
$res-dir.add('colors.css').spurt: %?RESOURCES<colors.css>.slurp;
$res-dir.add('main.css').spurt: %?RESOURCES<main.css>.slurp;
$res-dir.add('code.css').spurt: %?RESOURCES<code.css>.slurp;
}
#| Get a list of posts sorted by date