Properties
The property list shortcode creates a custom HTML description list that can be used to display properties or variables and general dependent information. The shortcode requires a data file in data/properties/
, e.g. data/properties/demo.yaml
.
{{< propertylist name=demo (sort=name) (order=[asc|desc]) >}}
The supported attributes can be taken from the following example:
|
|
- List of space-separated CSS class names to apply.Default: none
- The URL to use as target of the button.Default: none
- Executes the relref Hugo function to resolve the relative permalink of the specified page. The result is set as the target of the button.Default: none
- Preset of different button sizes. Supported values are
regular|large
.Default: none
- Property to demonstrate sorting.Default: none
- Dummy description of the prop1 string property.Default: none
- Another description for the integer property called prop2.Default: 10
A
bool
property with a complex multiline description and embedded Markdown:- List item 1
- List item 2
More description how to use this property.
Default: false