node: Change node web config metadata fields

- Remove the `name` field as it is not required in the new design.
- Rename `imageUrl` to `bannerUrl` to hint users that it's going to be
  used as a header image.
- Add a new field `avatarUrl` so node operators can customize their
  node further.
This commit is contained in:
Rūdolfs Ošiņš 2024-07-17 14:00:07 +02:00 committed by cloudhead
parent 4a497fa66f
commit a831e18a72
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -10,12 +10,12 @@ use crate::prelude::RepoId;
pub struct Config {
/// Pinned content.
pub pinned: Pinned,
/// URL pointing to an image for the node.
/// URL pointing to an image used in the header of a node page.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub image_url: Option<String>,
/// Node name.
pub banner_url: Option<String>,
/// URL pointing to an image used as the node avatar.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
pub avatar_url: Option<String>,
/// Node description.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub description: Option<String>,