From 1d195e53d06036ecce4b889a7e6d743233626852 Mon Sep 17 00:00:00 2001 From: Kevin Lin <kevinl@cs.uw.edu> Date: Mon, 10 Aug 2020 20:09:18 -0700 Subject: [PATCH] _config.yml: Add lessons as a Just the Docs collection --- _config.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 2745a91..87006e1 100644 --- a/_config.yml +++ b/_config.yml @@ -13,7 +13,7 @@ # you will see them accessed via {{ site.title }}, {{ site.github_repo }}, and so on. # You can create any custom variable you would like, and they will be accessible # in the templates via {{ site.myvariable }}. -title: Just the Class +title: &title Just the Class tagline: A Jekyll template for course websites description: A modern, highly customizable, responsive Jekyll template for course websites author: Kevin Lin @@ -38,6 +38,9 @@ footer_content: # Collections for website data collections: announcements: + lessons: + permalink: '/:collection/:path/' + output: true modules: schedules: staffers: @@ -48,6 +51,11 @@ defaults: type: announcements values: layout: announcement + - scope: + path: '' + type: lessons + values: + layout: page - scope: path: '' type: modules @@ -63,6 +71,13 @@ defaults: type: staffers values: layout: staffer +# Configure collections for Just the Docs +just_the_docs: + collections: + pages: + name: *title + lessons: + name: Lessons compress_html: clippings: all -- GitLab