{% for fields in site.data.form.fields %} {% for f in fields %} {% capture ftype %}{{ f[1] | map: 'type' }}{% endcapture %} {% capture default %}{{ f[1] | map: 'default' }}{% endcapture %} {% case ftype %} {% when 'selection' %} {% assign fvalues=f[1] | map: 'values' | clean %}
{{ f[1] | map: 'help' | map: include.ln }}
{% when 'selection-tags' %} {% assign fvalues=site.data.categories %}
{{ f[1] | map: 'help' | map: include.ln }}
{% when 'selection-condition' %} {% assign fvalues=site.data.condition | sort %}
{{ f[1] | map: 'help' | map: include.ln }}
{% when 'selection-img' %} {% assign fvalues=f[1] | map: 'values' | clean %}
{{ f[1] | map: 'help' | map: include.ln }}
{% when 'input-text' %}
{{ f[1] | map: 'help' | map: include.ln }}
{% when 'textarea' %}
{{ f[1] | map: 'help' | map: include.ln }}
{% endcase %} {% endfor %} {% endfor %}

*.yml