{% if include.type == "basic" or include.type == "basic-sub" %}
  {% assign syntaxes = site.basic-syntax | where:"syntax-id", include.syntax-id %}
{% elsif include.type == "extended" %}
  {% assign syntaxes = site.extended-syntax | where:"syntax-id", include.syntax-id %}
{% endif %}

{% for syntax in syntaxes %}
{% if include.type != "basic-sub" %}
<h2>{{ syntax.title }}</h2>
{% elsif include.type == "basic-sub" %}
### {{ syntax.title }}
{% endif %}
{{ syntax.content }}
{% endfor %}
