mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-24 13:50:40 +00:00
1.1 KiB
1.1 KiB
title |
---|
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
.
Usage
{{</* propertylist name=demo (sort=name) (order=[asc|desc]) */>}}
The supported attributes can be taken from the following example:
{{< include file="/data/properties/demo.yaml" language="Yaml" options="linenos=table" >}}
Attributes
{{< propertylist name=shortcode-buttons sort=name order=asc >}}
Example
{{< propertylist name=demo sort=name order=asc >}}