aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/_includes/notes.html
blob: 7a1a0a9a1f293b38d3317a675c004b3b88b9a036 (plain) (tree)
1
2
3
4
5




                                                              








                                                  

                                                                  
                                                         
                                                          
                                                                                                                    
              


              
{% comment %}
  Sorting can be done in _config.yml with Jekyll 4.0 or later.
{% endcomment %}
{% assign note_list = site.notes | sort_natural: 'title' %}
<div class="list-group wide-enough">
  {% assign h = 'h4' %}
  {% if include.sidebar %}
    {% assign h = 'h5' %}
  {% endif %}
  {% if include.sidebar %}
  <div class="list-group-item disabled">
    <h4 class="list-group-item-heading">notes</h4>
  </div>
  {% endif %}
  {% for note in note_list %}
  <a href="{{ note.url | relative_url }}" class="list-group-item">
    <{{ h }} class="list-group-item-heading post-header">
      <span class="text-monospace">{{ note.title }}</span>
      <small class="post-date"><span class="glyphicon glyphicon-menu-right"></span>&nbsp;{{ note.subtitle }}</small>
    </{{ h }}>
  </a>
  {% endfor %}
</div>