Skip to content

Commit

Permalink
add example of using noheader and nofooter attriubtes on document and…
Browse files Browse the repository at this point in the history
… noheader and nofooter options on toc macro
  • Loading branch information
mojavelinux committed Feb 5, 2024
1 parent 02d3b1f commit 72c6494
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/modules/theme/pages/add-running-content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,31 @@ footer:
----

If you define running header and footer content in your theme (including the height), you can still disable this content per document by setting the `noheader` and `nofooter` attributes in the AsciiDoc document header, respectively.

[,asciidoc]
----
= Document Title
:noheader:
:nofooter:
No running content in this document.
----

If you want to disable the header and footer on pages in the TOC that were added using the toc macro, you can do so by setting the `noheader` and/or `nofooter` options on the toc macro.

[,asciidoc]
----
= Document Title
:doctype: book
:toc: macro
[dedication]
== Dedication
Credit where credit is due.
[%noheader%nofooter]
toc::[]
== First Chapter
----

0 comments on commit 72c6494

Please sign in to comment.