diff --git a/src/editor/endpoints/collection.rs b/src/editor/endpoints/collection.rs index 85fa521..95172e3 100644 --- a/src/editor/endpoints/collection.rs +++ b/src/editor/endpoints/collection.rs @@ -322,6 +322,11 @@ pub fn edit_page( String::new() }; + let input_unlisted_conditionally_hidden = match collection.path.as_str() { + "" => if collection.unlisted { format!(r#""#)} else { String::new() }, + _ => input_unlisted + }; + let body = formatdoc!(r#" {errors} @@ -331,7 +336,7 @@ pub fn edit_page(