HTML_CONTAINER and HTML_CONTAINER_CLASS similar to the way
ox-html does, but also supporting property inheritance.
The HTML_CONTAINER and HTML_CONTAINER_CLASS properties can be
added to any of the subtrees with the EXPORT_ prefix.
If a sub-tree has the property EXPORT_HTML_CONTAINER: section, that
sub-tree is exported as a heading surrounding with <section> and
</section>. By default, that section tag has the class
“outline-NUM” where NUM is the level of that heading in that post.
By default, if HTML_CONTAINER is inherited (for example, set at the
file level), it is only applied to top-level sections. Deeper sections
get wrapped in div tags. If you would like the same container to be
applied throughout, set HTML_CONTAINER_NESTED to t.
Additionally, if it has the property EXPORT_HTML_CONTAINER_CLASS: foo, the “foo” class gets added to that container tag as well.
Search the ox-hugo test site for “container” examples.