https://discuss.asciidoctor.org/Customizing-HTML-footer-tp462p477.html
Costin and Rob,
As is always the case, you can solve pretty much any rendering need in Asciidoctor by supplying your own template. In this case, you might grab one of the document templates from the asciidoctor-backends repository (be sure to use the 0.1.3 branch) [1] (e.g., document.html.slim, document.html.haml, document.html.erb).
Let's assume you are using document.html.slim. You hack it up as needed, put it into the directory asciidoctor-templates/slim/html5 somewhere in the project and tell Asciidoctor to find it by passing template_dir = "asciidoctor-templates/slim" to the Asciidoctor task. It will discover the document template and use it in place of the built-in one.
Modifying the footer content is common enough that we decided to provide simpler mechanisms for customizing it in Asciidoctor 0.1.4. To disable the "Last Updated" text outright, you pass a negated attribute:
last-update-label!
You could also trick the label into displaying additional text before it emits the modified time by setting it as follows:
last-update-label="**Whatever you want here** Last Updated:"
Another approach to custom text is to include a docinfo-footer file, also introduced in 0.1.4. It works exactly the same as the docinfo files in AsciiDoc, except you name it with the -footer.{ext} suffix (e.g., docinfo-footer.html). The contents of that file go into the footer div at the bottom of the page.
Fortunately, you don't have to wait long for 0.1.4. We are working to get it out this week!
Btw, the header and footer on the
asciidoctor.org pages comes from the site generation tool, Awestruct. Asciidoctor is only rendering the body content using embedded rendering mode.
-Dan
[1]
https://github.com/asciidoctor/asciidoctor-backends/blob/asciidoctor-v0.1.3/slim/html5/document.html.slim