{% comment %} Sorting can be done in _config.yml with Jekyll 4.0 or later. {% endcomment %} {% assign note_list = site.notes | sort_natural: 'title' %}
{% assign h = 'h4' %} {% if include.sidebar %} {% assign h = 'h5' %} {% endif %} {% if include.sidebar %}

notes

{% endif %} {% for note in note_list %} <{{ h }} class="list-group-item-heading post-header"> {{ note.title }} {{ note.subtitle }} {% endfor %}