diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-06 22:23:54 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-06 22:24:45 +0200 |
| commit | be5e0048913797f2ef91065908730da025113c34 (patch) | |
| tree | dd16e4908bb93953dbc823d7624f76c363a00bf4 /src/_includes | |
| parent | bump dependencies (diff) | |
| download | blog-be5e0048913797f2ef91065908730da025113c34.tar.gz blog-be5e0048913797f2ef91065908730da025113c34.zip | |
move Jekyll source files to src/
Diffstat (limited to 'src/_includes')
| -rw-r--r-- | src/_includes/custom-sidebar.html | 8 | ||||
| -rw-r--r-- | src/_includes/notes.html | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/_includes/custom-sidebar.html b/src/_includes/custom-sidebar.html new file mode 100644 index 0000000..0aad3ac --- /dev/null +++ b/src/_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/src/_includes/notes.html b/src/_includes/notes.html new file mode 100644 index 0000000..ca91e54 --- /dev/null +++ b/src/_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> |
