diff options
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/custom-sidebar.html | 8 | ||||
-rw-r--r-- | _includes/notes.html | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/_includes/custom-sidebar.html b/_includes/custom-sidebar.html new file mode 100644 index 0000000..0aad3ac --- /dev/null +++ b/_includes/custom-sidebar.html @@ -0,0 +1,8 @@ +{% unless page.sidebar.notes.hide %} + +{% capture notes %} +{% include notes.html sidebar=true %} +{% endcapture %} +{% include jekyll-theme/sidebar/entry.html content=notes %} + +{% endunless %} diff --git a/_includes/notes.html b/_includes/notes.html new file mode 100644 index 0000000..ca91e54 --- /dev/null +++ b/_includes/notes.html @@ -0,0 +1,14 @@ +{% assign note_list = site.notes | sort_natural: 'title' %} +<div class="list-group wide-enough"> + <div class="list-group-item disabled"> + <h4 class="list-group-item-heading">notes</h4> + </div> + {% for note in note_list %} + <a href="{{ note.url | relative_url }}" class="list-group-item"> + <h5 class="list-group-item-heading flex-header"> + <span>{{ note.title }}</span> + <small class="flex-header-right"><span class="glyphicon glyphicon-menu-right"></span> {{ note.subtitle }}</small> + </h5> + </a> + {% endfor %} +</div> |