by Tom Swan
This page shows the correct way to attach a favicon image to an Asciidoctor-generated HTML document. Follow these steps:
docinfo.htmlfile with the following text
<!-- docinfo.html --> <link rel="icon" type="image/png" href="image/favicon-72x72.png">
sharedat the top of your document’s text (see this page’s source text proper-way.txt, line 5, for an example).
See the full article for more information about using
docinfo. What it does for us here is inject the
<link> tag into the
<head> of the HTML file where it belongs.
You can find more information about
docinfo header and footer files at this Asciidoctor User Manual Link.