From 06496fb9abde2a86dfe866664d4072017e8ae553 Mon Sep 17 00:00:00 2001 From: ada Date: Tue, 19 Aug 2025 15:40:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BE?= =?UTF-8?q?=D1=87=D0=B8=D1=82=D1=8C=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=BA=D1=83=20=D0=B7=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=BA=20=D0=BF=D0=BE=20=D0=BF=D0=B0=D0=BF=D0=BA=D0=B0?= =?UTF-8?q?=D0=BC=20=D0=B8=20=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B2=20=D0=BA=D0=BE=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _pages/notes.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/_pages/notes.md b/_pages/notes.md index 80d069a..403be44 100644 --- a/_pages/notes.md +++ b/_pages/notes.md @@ -4,9 +4,25 @@ title: Все заметки permalink: /notes/ --- +{%- comment -%} +Берём _notes/HomeServer/hs1.md → группируем по "HomeServer". +Если файл лежит прямо в _notes/, кладём его в группу "Без проекта". +{%- endcomment -%} + +{%- assign by_folder = site.notes + | group_by_exp: "n", "n.path | remove_first: '_notes/' | split: '/' | first" -%} + +{%- for g in by_folder -%} + {%- assign folder = g.name -%} + {%- if folder == g.items[0].path -%}{% assign folder = "Без проекта" %}{% endif %} + +### {{ folder }} ({{ g.items | size }}) + + +{%- endfor -%}