fromTaxonomy()
Access the taxonomy directly.
This can also be done in nunjucks,
using the taxonomy global variable,
but a filter makes that available
from inside macros,
without passing it in as an argument.
Params:
-
type {oss | post}Any taxonomy defined in the
taxonomy.yamldata file -
find {any} = undefinedOptionally return an object in the taxonomy, using lodash
_.find() -
get {string} = undefinedOptionally return a single attribute of the found object