Closed zachkrall closed 7 years ago
You can try:
{% for data in page.metadata if data %}
{{ data }}
{% endfor %}
I'll try that! Thanks
realizing there are some helpful suggestions in this thread https://github.com/kolber/stacey/issues/97
Lots of good stuff here too. https://github.com/kolber/Stacey-Snippets/wiki
I am not sure if this might be possible, but I was curious if it's possible to define custom sub variables and run a loop to print whatever may be defined.
{{ metadata.* }}
??Right now, for my projects on my website, I have a "metadata" section that includes things like the date, medium, dimensions, etc. it would be nice to be able to define a new piece of data without also having to update the template.
Essentially, I'd like to avoid making a table with markdown so that the template remains flexible if the design changes in the future.