mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
feat: remove special Book sort for folder named updates
This commit is contained in:
parent
211d8b330b
commit
ebef2543c3
1 changed files with 0 additions and 2 deletions
|
@ -52,8 +52,6 @@
|
||||||
{{/* Case where first section is a book. */}}
|
{{/* Case where first section is a book. */}}
|
||||||
|
|
||||||
{{ $menu_name = (path.Base (path.Split .FirstSection).Dir) }}
|
{{ $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" -}}
|
{{- if eq $order_by "title" -}}
|
||||||
{{- $query = where .Site.Home.Sections.ByTitle "Section" $menu_name -}}
|
{{- $query = where .Site.Home.Sections.ByTitle "Section" $menu_name -}}
|
||||||
{{- else if eq $order_by "title_desc" -}}
|
{{- else if eq $order_by "title_desc" -}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue