From bbc0f9bbcd8257fbfcb9de21819f4661fa127ed3 Mon Sep 17 00:00:00 2001 From: David Jencks Date: Sat, 24 Aug 2019 22:39:19 +0000 Subject: [PATCH] Update templates.adoc to clarify page.attributes usage. This might be obvious to everyone else, but it took me about a day to figure out the syntax. --- docs/modules/ROOT/pages/templates.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/templates.adoc b/docs/modules/ROOT/pages/templates.adoc index 378fb6b..2d628af 100644 --- a/docs/modules/ROOT/pages/templates.adoc +++ b/docs/modules/ROOT/pages/templates.adoc @@ -61,7 +61,8 @@ Sourced from AsciiDoc and converted to HTML by the Asciidoctor processor. | page.attributes | AsciiDoc header attributes that are prefixed with `page-`. -The `page-` prefix is dropped from these names. +The `page-` prefix is dropped from these names. A header attribute `:page-foo: bar` +is accessed as `page.attributes.foo`. | page.description | The text of the description attribute in the AsciiDoc header, if specified. -- 2.11.0