From 0be7453e764e26dcc2a3a4f4ad903b1b236cc753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 24 Jun 2024 16:17:44 +0200 Subject: [PATCH] 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. --- radicle/src/web.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/radicle/src/web.rs b/radicle/src/web.rs index 90988019..213939b7 100644 --- a/radicle/src/web.rs +++ b/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 for the node. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub image_url: Option, + /// Node name. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub name: Option, + /// Node description. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub description: Option, } /// Pinned content. This can be used to pin certain content when