Skip to content

Commit ce20333

Browse files
committed
Split off courses map from course map
Previously we had one `menus_to_map` frontmatter you could set, and in the org-cyf repo we replaced how it mapped menus to look for course data, and show duration, frequency, etc. This change renames that to `menus_to_map_for_courses` so that org-cyf doesn't have to override the partial any more. This allows org-cyf to show both regular `menus_to_map` and `menus_to_map_for_courses` on different pages, rather than only allowing one of them to be shown. This is a somewhat simpler model (no inheritence to grok), and also would make merging our sites easier if we want to.
1 parent 5afe51d commit ce20333

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

common-theme/layouts/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
{{ end }}
1212
{{ if .Params.menus_to_map }}
1313
{{ partial "map-menu.html" .Params.menus_to_map }}
14+
{{ else if .Params.menus_to_map_for_courses }}
15+
{{ partial "map-menu-for-courses.html" .Params.menus_to_map_for_courses }}
1416
{{ else if .Params.map }}
1517
{{ partial "map.html" . }}
1618
{{ else if .Params.taxonomy_to_map }}
File renamed without changes.

org-cyf/content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
+++
22
title="Our Courses"
3-
menus_to_map=["start here", "selection", "trainees", "fellowships"]
3+
menus_to_map_for_courses=["start here", "selection", "trainees", "fellowships"]
44
description="Free training for good jobs in tech | [Calendar](/calendar) | [Overview](/overview) | [Guides](/guides)"
55
+++

0 commit comments

Comments
 (0)