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.yaml
data file -
find {any} = undefined
Optionally return an object in the taxonomy, using lodash
_.find()
-
get {string} = undefined
Optionally return a single attribute of the found object