aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/_includes
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-06 22:23:54 +0200
committerEgor Tensin <egor@tensin.name>2026-06-06 22:24:45 +0200
commitbe5e0048913797f2ef91065908730da025113c34 (patch)
treedd16e4908bb93953dbc823d7624f76c363a00bf4 /src/_includes
parentbump dependencies (diff)
downloadblog-be5e0048913797f2ef91065908730da025113c34.tar.gz
blog-be5e0048913797f2ef91065908730da025113c34.zip
move Jekyll source files to src/
Diffstat (limited to 'src/_includes')
-rw-r--r--src/_includes/custom-sidebar.html8
-rw-r--r--src/_includes/notes.html14
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>&nbsp;{{ note.subtitle }}</small>
+ </h5>
+ </a>
+ {% endfor %}
+</div>