diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-10-25 12:05:29 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-10-25 12:05:29 +0200 |
commit | cabfb8ec4e4f75575b048e3dcd3ab4622b593c9d (patch) | |
tree | 81bd9d8feb26d441f0356b000519470659dc9037 /notes/index.html | |
parent | notes/latex: hide the ugliness (diff) | |
download | blog-cabfb8ec4e4f75575b048e3dcd3ab4622b593c9d.tar.gz blog-cabfb8ec4e4f75575b048e3dcd3ab4622b593c9d.zip |
redesign feed & categories
Diffstat (limited to 'notes/index.html')
-rw-r--r-- | notes/index.html | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/notes/index.html b/notes/index.html index 8e03612..a5452c0 100644 --- a/notes/index.html +++ b/notes/index.html @@ -3,13 +3,29 @@ title: Notes navbar: link: Notes priority: 3 +layout: default sidebar: notes: hide: true --- +<h1>{% include jekyll-theme/categories/label.html category='Notes' feed=true %}</h1> {% if site.notes.size > 0 %} - <p>Style guides and best practices, not worthy of a post.</p> - {% include notes.html %} + {% comment %} + Sorting can be done in _config.yml with Jekyll 4.0 or later. + {% endcomment %} + {% assign note_list = site.notes | sort_natural: 'title' %} + {% for note in note_list %} + <a href="{{ note.url | relative_url }}" class="feed-entry"> + <div class="post-header"> + <h5 class="text-monospace">{{ note.title }}</h5> + <div class="post-date"> + <p class="text-muted font-size-90"> + <span class="glyphicon glyphicon-menu-right"></span> <span class="text-monospace">{{ note.subtitle }}</span> + </p> + </div> + </div> + </a> + {% endfor %} {% else %} <p>Sorry, no notes have been added yet.</p> {% endif %} |