diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-10-16 03:16:32 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-10-16 03:16:32 -0600 |
| commit | 1c7cfec3b40929d6fb094d9eea3fac647efcba1c (patch) | |
| tree | ae09bd29647e1db00f50001896215f34abc1fe47 /docs | |
| parent | f862069284d0232f68b0a8efec9b3da4c479f72b (diff) | |
document how to override the default alternating page numbers in the running footer [skip ci]
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/theming-guide.adoc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/theming-guide.adoc b/docs/theming-guide.adoc index 6da9c087..033f6fbc 100644 --- a/docs/theming-guide.adoc +++ b/docs/theming-guide.adoc @@ -4232,6 +4232,36 @@ IMPORTANT: If you don't specify a height for either the header or footer key, it 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. +If you extend either the base or default theme, and don't specify content for the footer, the current page number will be added to the right side on recto pages and the left side on verso pages. +To disable this behavior, you can use the following snippet: + +[source,yaml] +---- +footer: + recto: + right: + content: ~ + verso: + left: + content: ~ +---- + +Instead of erasing the content (which is what the `~` does), you can specify content of your choosing. + +If you want to replace the alternating page numbers with a centered page number, then you can restrict the footer to a single column and specify the content for the center position. + +[source,yaml] +---- +footer: + columns: =100% + recto: + center: + content: '{page-number}' + verso: + center: + content: '{page-number}' +---- + TIP: Although not listed in the table above, you can control the font settings (font-family, font-size, font-color, font-style, text-transform) that get applied to the running content in each column position for each page side (e.g., `footer-<side>-<position>-font-color`). For example, you can set the font color used for the right-hand column on recto pages by setting `footer-recto-right-font-color: 6CC644`. |
