-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow layout to be disabled #63
Comments
I've decided instead that explicit values will be easier to parse:
|
The following can be used to create a standalone document:
|
In order for this to work, empty page attribute values need to be converter to an empty string instead of null. For example, the following should resolve to empty string:
Currently, it's resolving to nil. See #70. |
- false disables layout, enables standalone output - nil disables layout, does not enable standalone output - not specified or empty string uses default (inherited) layout
I think we leave room to support unsetting the
We just won't do it yet (due to how this plugin works). |
- false disables layout, enables standalone output - nil disables layout, does not enable standalone output - not specified or empty string uses default (inherited) layout
- false or unset disables layout, enables standalone output - nil disables layout, does not enable standalone output - not specified, empty string or _auto uses default (inherited) layout
- false or unset disables layout, enables standalone output - nil disables layout, does not enable standalone output - not specified, empty string or _auto uses default (inherited) layout
- false or unset disables layout, enables standalone output - nil disables layout, does not enable standalone output - not specified, empty string or _auto uses default (inherited) layout
- false or unset disables layout, enables standalone output - nil disables layout, does not enable standalone output - not specified, empty string or _auto uses default (inherited) layout
I decided to implement the following rules:
|
Allow the layout to be disabled. In this case, Asciidoctor's
header_footer
option is enabled so that the page is converted to a standalone HTML document.The layout would be disabled by unsetting the
page-layout
attribute in the document header:See the Middleman AsciiDoc extension for an example.
The text was updated successfully, but these errors were encountered: