When we define the document attribute
icons with the value
font the FontAwesome fonts are loaded in the generated HTML page. In the
head section of the HTML document a
link element to the FontAwesome CSS on
cdnjs.cloudflare.com server is generated. We can change the value of the scheme from
http by setting the attribute
cdnjs.cloudflare.com server. Remember this might provide a problem if the HTML page is opened locally.
In the next sample Asciidoc markup we change the scheme to
:asset-uri-scheme: http :icons:font == Asset URI Scheme Sample document. In the generated HTML we see the new scheme value: Now we leave the value of the `asset-uri-scheme` attribute empty: :asset-uri-scheme: :icons:font == Asset URI Scheme Sample document.
The generated HTML now contains a link to the FontAwesome CSS with a scheme-less URI:
Written with Asciidoctor 1.5.0.