aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/notes/index.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-24 13:07:09 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-24 13:07:09 +0300
commit5c569ca60837f88d96df6429cfe687c55792b138 (patch)
tree92aea3d0eee1f77335557479cdfb1b11520e4c02 /notes/index.html
parentnotes: reformat, add subtitles (diff)
downloadblog-5c569ca60837f88d96df6429cfe687c55792b138.tar.gz
blog-5c569ca60837f88d96df6429cfe687c55792b138.zip
show notes on the sidebar on some pages
Diffstat (limited to 'notes/index.html')
-rw-r--r--notes/index.html12
1 files changed, 1 insertions, 11 deletions
diff --git a/notes/index.html b/notes/index.html
index da03827..1351be1 100644
--- a/notes/index.html
+++ b/notes/index.html
@@ -5,18 +5,8 @@ navbar:
priority: 3
---
{% if site.notes.size > 0 %}
- {% comment %}
- Sorting can be done in _config.yml with Jekyll 4.0 or later.
- {% endcomment %}
- {% assign note_list = site.notes | sort_natural: 'title' %}
<p>Style guides and best practices, not worthy of a post.</p>
- <div class="list-group wide-enough">
- {% for note in note_list %}
- <a href="{{ note.url | relative_url }}" class="list-group-item">
- <h4 class="list-group-item-heading">{{ note.title }} <small>{{ note.subtitle }}</small></h4>
- </a>
- {% endfor %}
- </div>
+ {% include notes.html %}
{% else %}
<p>Sorry, no notes have been added yet.</p>
{% endif %}