Skip to content

Commit 6cc635f

Browse files
authored
Re-fill overview page, and error if it's empty (#1266)
1 parent 9d1ccc8 commit 6cc635f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

common-theme/layouts/_default/overview.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
{{ if not $overviewMenu }}
99
{{ errorf "You must define a menu in your overview_menu front matter param" }}
1010
{{ end }}
11-
11+
{{ if not (index .Site.Menus $overviewMenu) }}
12+
{{ errorf "Overview page tried to generate overview for menu %s which is empty" $overviewMenu }}
13+
{{ end }}
14+
1215
{{ range index .Site.Menus $overviewMenu }}
1316
<section class="c-overview">
1417
{{/* ===========================

org-cyf-itp/content/overview/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title="Course overview"
33
layout="overview"
4-
overview_menu="programming"
4+
overview_menu="course schedule"
55
menu=["start here", "syllabus"]
66
description="4 modules of 3 sprints delivered over 12-16 weeks"
77
weight=2

org-cyf-itp/content/welcome/prep/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title = 'Prep'
33
description = 'What to do before you come to class'
44
layout = 'prep'
55
emoji= '🧑🏾‍💻'
6+
theme = "Getting to know how the course works"
67
menu_level = ['module']
78
weight = 1
89
[[blocks]]

0 commit comments

Comments
 (0)