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:
parent
9edb633d98
commit
0be7453e76
|
|
@ -10,6 +10,15 @@ use crate::prelude::RepoId;
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
/// Pinned content.
|
/// Pinned content.
|
||||||
pub pinned: Pinned,
|
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
|
/// Pinned content. This can be used to pin certain content when
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue