Variables in Combostrap are first-class citizen meaning that you can use them anywhere.
The below markup will print:
* Title: ''$title''
* Path: ''$path''
Output
You can transform the variable by using the pipeline syntax
It will create:
The [[$path| ${h1 | cut("-","2-") | trim()} page]].
Result:
The Variables page.
The supported variable are:
And all frontmatter metadatas that are scalar (ie no array). Basically, all metadata that can be seen in the scalar metadata node of the analytics data can be used as attribute.
By default all variables are filled with the value of the requested page.
When used inside a iterator fragment, they get the values of the selected page.
You can retrieve parent page data with the hierarchical breadcrumb.