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:
parent
4a497fa66f
commit
a831e18a72
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Reference in New Issue