CategoryOptionalData

Inherits: Resource > Reference > Object

Description

Struct to hold optional data for categories, like descriptions or weight to be used in HUGO

Properties

type property default value
int weight 0
String description ""

Signals

  • struct_updated()

Signal emitted whenever any struct variable is changed.


Properties Descriptions

weight

Default 0
Setter _set_weight

Value hugo will use to order categories in the side menu. “Heavier” categories will appear to the bottom and “lighter” ones will appear towards the top. Be careful though that “0” means “disabled” so if you start setting weights for some categories set the ones you want to be on top with at least a value of “1”

Can be filled in through the Docs exporter tab, in the Project Settings.


description

Default ""
Setter _set_description

Each category page gets a TOC with all the links that are inside it. If you want this auto generated page to have a description as well, use this field.

Can be filled in through the Docs exporter tab, in the Project Settings.