Skip to content

Commit

Permalink
fix(build): don't try to read generic pages if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Jan 29, 2025
1 parent 9890c7d commit 508b26f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/rari-doc/src/pages/types/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ impl GenericPage {

pub fn is_generic(slug: &str, locale: Locale) -> bool {
let url = concat_strs!("/", locale.as_url_str(), "/", slug).to_ascii_lowercase();
if generic_content_root().is_none() {
return false;
}
generic_content_files().contains_key(&url)
}
}
Expand Down

0 comments on commit 508b26f

Please sign in to comment.