Open akomakom opened 7 years ago
The layout part of this issue was reported again in #187 and a solution has been found.
Built-in AsciiDoc attributes such as imagesdir cannot yet be defined per scope. They can only be defined globally or in the document itself.
I'd guess this is related, I managed to enable asciidoctor-bibtex on my Jekyll site, but apparently the bibtex-file
-attribute has to be set globally and cannot be set on a per document basis. So it is only possible to have one bibliography file for the whole site, which does not scale well.
Have you tried the soft set (@
) modifier? https://docs.asciidoctor.org/asciidoc/latest/attributes/assignment-precedence/#altering-the-assignment-precedence
Is it possible to provide different attribute values per jekyll scope?
ie:
Which would override the value of imagesdir specified in asciidoctor->attributes for the given path?
Alternatively, all scope values could be blindly made available to asciidoctor:
(just two examples of possible syntax).
At this time I'm finding that the scope concept is entirely disconnected from asciidoctor configuration - there is no way to reference values between them in either direction (being able to reference them would be another way to reduce duplicated configuration)
If there is a way to do any of the above already, please point me in the right direction.