Реструктуризация: два глобальных раздела — Яша и Семен
Весь контент перенесён в content/yasha/ (7 подразделов). Создан content/semen/ с подразделами: changelog, kb, diary. Навигация — dropdown в навбаре, двухуровневое меню в hugo.toml. Шаблоны, сайдбар, поиск обновлены под вложенные секции.
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user