Let’s say I have the following in the front ymatter of a single content file:
---
workson: [lists, taxonomies,homepage,single]
---
And I want to range through these values in my single page template such that
lists: /templates/list/
taxonomies: /templates/taxonomies
homepage: /templates/homepage/
single: /templates/single/
The idea would be to output <a href="value">key</a>
for whatever has been added PLUS prevent the template from breaking in case of human error (e.g., a typo like “hoempage”).
I can do this with a series of if/else statements, but this strikes me as either a) slow or b) just plain ugly in the templating. Any/all suggestions are welcome. Thanks ahead of time!