I want to set the keywords
attribute based on the hierarchy of sections.
For example, suppose you have the following AsciiDoc document:
= Article
:keywords: keyword0
== Section1
:keywords: keyword1
== Section2
{keywords}
In this example {keywords}
the output I expect is keyword0
. In other words, I do not want the value of the keywords
attribute set in Section1
to carry over to Section2
.
However, the output of Asciidoctor.js Live Preview shows keyword1
. Is it possible to set the scope based on the hierarchy of sections for the keywords attribute?
If the above method is not in line with AsciiDoc’s practices, please let me know if there are better design strategies for AsciiDoc documents.
n0nakamura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.