Search code examples
asciidocasciidoctor

Exclude timestamp from being rendered in asciidoc/asciidoctor


Is it possible to exclude/suppress the timestamp from being generated in asciidoc/asciidoctor? Its the "Last updated..." footer at the bottom of the page.

P.S I am trying to do this in asciidoctor.


Solution

  • It's possible to redefine template that generates the "Last ..." message. Create a new file nofooter.conf with the following content:

    [footer-text]
    <single space on this line>
    

    And then use the following command to make HTML:

    asciidoc -f nofooter.conf file.txt
    

    It should produce empty <div id="footer-text"></div>.

    UPD. For asciidoctor it's possible to specify attribute nofooter:

    asciidoctor -a nofooter file.txt