jbake icon indicating copy to clipboard operation
jbake copied to clipboard

Export published_date (and other data model references) to asciidoc

Open ge0ffrey opened this issue 3 years ago • 2 comments

This asciidoc line currently doesn't work:

This website was generated on {published_date}.

This and other properties that are ready at asciidoc parsing time should be available as adoc attributes (possibly namespaced as "jbake.").

ge0ffrey avatar May 14 '21 11:05 ge0ffrey

Does this relate to #467?

LightGuard avatar Aug 26 '21 22:08 LightGuard

Hmm asciidoctor.attributes.export being set to true would expose all configuration values (specifically config.[option]) to Asciidoc but it shouldn't expose any of the JBake data model unfortunately.

jonbullock avatar Aug 30 '21 18:08 jonbullock