feat: remove special Book sort for folder named updates

This commit is contained in:
George Cushen 2021-02-10 07:57:23 +00:00
commit ebef2543c3

View file

@ -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" -}}