Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: Add imageUrl, title and description fields to node config
Merged rudolfs opened 1 year ago

This allows us to show a custom header background image in radicle-explorer as well as display a title and description.

1 file changed +9 -0 9edb633d 0be7453e
modified radicle/src/web.rs
@@ -10,6 +10,15 @@ use crate::prelude::RepoId;
pub struct Config {
    /// Pinned content.
    pub pinned: Pinned,
+
    /// URL pointing to an image shown on the node page header in radicle-explorer.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub image_url: Option<String>,
+
    /// Node title.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub title: Option<String>,
+
    /// Node description.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub description: Option<String>,
}

/// Pinned content. This can be used to pin certain content when