Skip to content
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

[%notitle] not applied in first level title #182

Closed
gquintana opened this issue Feb 5, 2018 · 3 comments
Closed

[%notitle] not applied in first level title #182

gquintana opened this issue Feb 5, 2018 · 3 comments

Comments

@gquintana
Copy link
Contributor

gquintana commented Feb 5, 2018

The [%notitle] directive doesn't work when applied on document title.

Example:

[%notitle]
= Level 1

Title is shown :-(

[%notitle]
== Level 2

Title is hidden :-)

The title "Level 1" is shown, while the title "Level 2" is hidden.

Tested on v1.1.3

@obilodeau
Copy link
Member

You need to use the :notitle: document attribute. However, it completely removes the whole title slide (not just the title) so to accomplish your example it would look like this:

= My Awesome Talk
:notitle:

[%notitle]
== First slide

Title is hidden :-)

[%notitle]
== Second slide

Title is hidden :-)

I just tested it, it should work.

@gquintana
Copy link
Contributor Author

Thanks, it's a bit counter intuitive but it's OK.
Your trick is worth a mention in the doc https://github.com/asciidoctor/asciidoctor-reveal.js#slides-without-titles

@obilodeau
Copy link
Member

For people familiar with AsciiDoc this is not counter-intuitive, quite the opposite: a level one title is a document title (not a section title) and a document is altered by using document attributes (see the link I pointed to earlier). You cannot have more than one "level one" title per document.

I'll add a note to the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants