{% assign notes = site.data.pages[page.path].notes %} {% if notes != null %}

Notes:

{% if site.data.pages[page.path].notes-type == 'xml' %} {% include {{notes}} type=include.type id=include.id %} {% else %} {% capture note-content %} {% include {{notes}} type=include.type id=include.id %} {% endcapture %}
{{ note-content | markdownify }}
{% endif %} {% endif %}