mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
feat: remove special Book sort for folder named updates
This commit is contained in:
1 parent
211d8b330b
commit
ebef2543c3
1 file changed
-2
@@ -52,8 +52,6 @@
|
||||
{{/* Case where first section is a book. */}}
|
||||
|
||||
{{ $menu_name = (path.Base (path.Split .FirstSection).Dir) }}
|
||||
{{/* For any folder named `updates`, use descending title order (e.g. latest release note first). */}}
|
||||
{{ $order_by = cond (eq $menu_name "updates") "title_desc" $order_by }}
|
||||
{{- if eq $order_by "title" -}}
|
||||
{{- $query = where .Site.Home.Sections.ByTitle "Section" $menu_name -}}
|
||||
{{- else if eq $order_by "title_desc" -}}
|
||||
|
||||
Reference in new issue
Block a user