diff --git a/src/zona/builder.py b/src/zona/builder.py index 0060c61..0e2eb48 100644 --- a/src/zona/builder.py +++ b/src/zona/builder.py @@ -100,9 +100,9 @@ class ZonaBuilder: # write code highlighting stylesheet if self.config.markdown.syntax_highlighting.enabled: pygments_style = zmd.get_style_defs(self.config) - (self.layout.content / "static" / "pygments.css").write_text( - pygments_style - ) + pygments_path = self.layout.output / "static" / "pygments.css" + util.ensure_parents(pygments_path) + pygments_path.write_text(pygments_style) for item in self.item_map.values(): dst = item.destination # print(item)