Re: Problem with getting docinfo_processor to be used in jekyll asciidoctor
Posted by
maxandersen on
URL: https://discuss.asciidoctor.org/Problem-with-getting-docinfo-processor-to-be-used-in-jekyll-asciidoctor-tp7326p7332.html
mojavelinux wrote
>
> Well, oh well - I won't be able to use this tabbed-code extension then but
> those using "raw" asciidoctor can if they want to :)
>
You could get the extension to detect the environment. If the attribute
env-site is set, the extension could store the docinfo into a page
attribute (e.g., page-javascripts). That attribute is then available to the
template to echo.
Here's how I do it in Awestruct:
https://github.com/asciidoctor/asciidoctor.org/blob/master/_layouts/base.html.slim#L103-L104
hmm - do you have an example/link of that matching asciidoctor extension for doing the environment detction and page attribute setup ?