Реструктуризация: два глобальных раздела — Яша и Семен

Весь контент перенесён в content/yasha/ (7 подразделов).
Создан content/semen/ с подразделами: changelog, kb, diary.
Навигация — dropdown в навбаре, двухуровневое меню в hugo.toml.
Шаблоны, сайдбар, поиск обновлены под вложенные секции.
This commit is contained in:
Агальцов Антон
2026-04-26 19:44:52 +03:00
parent cc0b342208
commit dd67d2c2ec
249 changed files with 6900 additions and 9153 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "url" .RelPermalink "content" .Plain "section" .Section "tags" .Params.tags) -}}
{{- $sectionPath := strings.TrimSuffix "/" .CurrentSection.RelPermalink -}}
{{- $sectionPath = strings.TrimPrefix "/" $sectionPath -}}
{{- $.Scratch.Add "index" (dict "title" .Title "url" .RelPermalink "content" .Plain "section" $sectionPath "tags" .Params.tags) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}