Skip to content

Commit

Permalink
fix: disable artifacts if it's disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Jun 23, 2023
1 parent da1ddb7 commit 0119aea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/site/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ impl Site {
}
};
// FIXME: change the config so that you can set `artifacts: false` and disable this?
if context.latest().is_some() {
let artifacts_enabled = config
.components
.artifacts
.as_ref()
.map(|a| a.has_some())
.unwrap_or(false);
if context.latest().is_some() && artifacts_enabled {
context
.latest_mut()
.unwrap()
Expand Down

0 comments on commit 0119aea

Please sign in to comment.