diff --git a/src/types.rs b/src/types.rs index 85c2a89..bb1c042 100644 --- a/src/types.rs +++ b/src/types.rs @@ -23,6 +23,8 @@ pub struct Node { pub links: Vec, #[serde(default)] pub id: String, + #[serde(default)] + pub hidden: bool, #[serde(skip_serializing_if = "Option::is_none")] pub connections: Option>, @@ -148,6 +150,7 @@ impl Node { }, connections: None, links: vec![], + hidden: false, } } } diff --git a/templates/index.html b/templates/index.html index 1916b56..34ae97f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,7 +35,7 @@ {% if nodes and config.index_node_list %}