diff options
-rw-r--r-- | _config.yml | 2 | ||||
-rw-r--r-- | _includes/notes.html | 10 | ||||
-rw-r--r-- | c++/index.html | 1 | ||||
-rw-r--r-- | haskell/index.html | 1 | ||||
-rw-r--r-- | math/index.html | 1 | ||||
-rw-r--r-- | notes/index.html | 20 |
6 files changed, 24 insertions, 11 deletions
diff --git a/_config.yml b/_config.yml index a7407fc..d074df8 100644 --- a/_config.yml +++ b/_config.yml @@ -59,7 +59,7 @@ repository: egor-tensin/blog # jekyll-paginate paginate: 10 # jekyll-remote-theme -remote_theme: egor-tensin/jekyll-theme@2dc87131123afaa1716c87dd02164b33059ad2b8 +remote_theme: egor-tensin/jekyll-theme@18664118c08300b0e4a82ac225cc62b8b1513a7f # Theme settings settings: diff --git a/_includes/notes.html b/_includes/notes.html index 4b739af..7783490 100644 --- a/_includes/notes.html +++ b/_includes/notes.html @@ -3,21 +3,15 @@ {% 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"> + <h5 class="list-group-item-heading post-header"> <span>{{ note.title }}</span> <small class="post-date"><span class="glyphicon glyphicon-menu-right"></span> {{ note.subtitle }}</small> - </{{ h }}> + </h5> </a> {% endfor %} </div> diff --git a/c++/index.html b/c++/index.html index c6dc43a..e2fd103 100644 --- a/c++/index.html +++ b/c++/index.html @@ -1,4 +1,5 @@ --- title: C++ +layout: default --- {% include jekyll-theme/categories/category.html category=page.title archive_link='/all/' %} diff --git a/haskell/index.html b/haskell/index.html index d25c438..1fe6653 100644 --- a/haskell/index.html +++ b/haskell/index.html @@ -1,4 +1,5 @@ --- title: Haskell +layout: default --- {% include jekyll-theme/categories/category.html category=page.title archive_link='/all/' %} diff --git a/math/index.html b/math/index.html index 618be73..d0ba4fd 100644 --- a/math/index.html +++ b/math/index.html @@ -1,4 +1,5 @@ --- title: Math +layout: default --- {% include jekyll-theme/categories/category.html category=page.title archive_link='/all' %} 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 %} |