node: Add metadata fields to node web config

This allows us to show a custom header background image in
radicle-explorer as well as display a title and description.
This commit is contained in:
Rūdolfs Ošiņš 2024-06-24 16:17:44 +02:00 committed by cloudhead
parent 9edb633d98
commit 0be7453e76
No known key found for this signature in database
1 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,15 @@ use crate::prelude::RepoId;
pub struct Config {
/// Pinned content.
pub pinned: Pinned,
/// URL pointing to an image for the node.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub image_url: Option<String>,
/// Node name.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: 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