File tree Expand file tree Collapse file tree
themes/arm-design-system-hugo-theme/layouts/_default Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22title : AI
33slug : ml
4- build :
5- render : never
6- list : never
7- publishResources : false
84pinned_learning_paths :
95- learning-paths/cross-platform/kleidiai-explainer
106- learning-paths/servers-and-cloud-computing/vllm-acceleration
Original file line number Diff line number Diff line change 4040<!-- Sort using the CalculatedDate -->
4141{{ $sorted_paths_to_list := sort $blogs "calculated_date" "desc" }}
4242
43- <!-- Allow taxonomy term pages to pin learning paths via content-owned front matter.
44- Prefer a single-directory helper page like content/subject-ml/index.md, and
45- fall back to Hugo's taxonomy bundle layout content/subjects/ml/_index.md.
43+ <!-- Allow taxonomy term pages to pin learning paths via term front matter.
44+ Hugo does not expose term bundle front matter on .Params here, so resolve it explicitly.
45+ Example: content/subjects/ml/_index.md
4646-->
47- {{ $term_slug := .Data.Term | urlize }}
48- {{ $term_page_key := printf "/%s-%s" (.Data.Singular | replace "_" "-") $term_slug }}
49- {{ $term_content_page := site.GetPage $term_page_key }}
50- {{ if not $term_content_page }}
51- {{ $term_content_page = site.GetPage (printf "/%s/%s" .Data.Plural $term_slug) }}
52- {{ end }}
47+ {{ $term_content_page := site.GetPage (printf "/%s/%s" .Data.Plural (.Data.Term | urlize)) }}
5348{{ $pinned_paths := default (slice) .Params.pinned_learning_paths }}
5449{{ with $term_content_page }}
5550 {{ $pinned_paths = default $pinned_paths .Params.pinned_learning_paths }}
You can’t perform that action at this time.
0 commit comments