diff --git a/blogue/build.py b/blogue/build.py index c2fae16..69a0eeb 100644 --- a/blogue/build.py +++ b/blogue/build.py @@ -48,6 +48,12 @@ def build_site( current_document.source_locator.stem + ".html" ) + if "template" not in current_metadata: + logger.warning( + f"Skipped {current_document.source_locator.name}, no template attribute." + ) + continue + with open(target_path, "w") as out: rendered = renderer.render( str(current_metadata["template"]),