You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not being able to pass global AsciiDoc attributes to Asciidoctor severely limits its usefulness. There are certain attributes you don't even want to set per document because they are a publishing detail.
Rather than adding additional configuration for AsciiDoc / Asciidoctor, you may just consider allowing the arguments to the asciidoctor command to be controlled. This would not only allow global attributes to be set (the -a flag), but also make it possible to load extensions (-r flag).
So asciidoctor has attributes you can set on the command line to set globally
i.e.
:icons: font
:iconsdir: /images/icons
which can be set by in CLI usage like:
asciidoctor -a icons=font -a iconsdir=/images/icons
So instead of putting in the two attributes in every file, it can just be globally set.
Looking at
hugo/helpers/content.go
Line 601 in 8717a60
I don't see any way to pass along extra arguments
It would be nice if there was some sort of config level option in hugo to pass extra parameters to external helpers.
The text was updated successfully, but these errors were encountered: