How to specify metas?
Closedopened 9 years ago by adrientetar · 5 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
In the File Formats doc page, I see:
But I see no more information below that…
You can add metas like this, anywhere in the document. They will be collected into a hash table exported as
New docs for metas.
You can also do
raco pkg update pollenand the updated docs will be added to your installation.
@mbutterick Thanks, I wanted to use metas as a way to export the document’s title, like a frontmatter. In the tutorial you mention a way to capture a certain but I’d rather export (or is it unidiomatic?). Anyways, I think it’s the tool to do that and redeem it in the template file.
Sure, that's fine. Metas are particularly useful for anything that shouldn't be visible on the page, because they're removed from the output. In the template, you can use
select-from-metasto get the value.
Alternatively, if the document title is already visible in the page, you can pull it out using