Learn-Static Lesson Template is a minimal Jekyll theme with sidebar content nav for creating lesson and workshop websites using Markdown. The sidebar nav supports pages nested into sections to help organize your lesson content. The template provides Liquid includes to simplify adding Bootstrap components to your pages.
Content follows these conventions:
title
set in the front matter--thus additional headers on the page should start at "h2", i.e. ##
in markdown.code
class using backticks, filenames should be given in "quotes".The sidebar navigation menu is controlled by front matter added to each page. There are two ways a page can appear in the nav: individual or in a section drop down.
The nav follows these rules:
nav_order
to the front matter of a content page. e.g. nav_order: 1
. Do not include section_id
or section
in the front matter.nav_order
and section_id
to the front matter. The value of section_id
will be displayed as the label for the section drop down. e.g. section_id: Workshop Prep
. The page's title will be listed as the first item in the section dropdown.section
and nav_order
to the front matter of a markdown file. The value of section
must match a section_id
set up on another markdown file. The page's title will appear under the corresponding section dropdown. The pages in the section will sort according to nav_order
within the section--however, the page that sets up the section (with section_id
) will always be listed first.Note:
nav_order
.nav_order
or section
in the front matter, the page will not appear anywhere in the navigation. Occasionally you might want to create pages that aren't linked in the nav, just be sure to link to them from somewhere else!section_id
/ section
should be unique. If you create multiple sections with the same name, the nav won't work as expected!Individual listing:
---
nav_order: 1
title: Introduction
---
Section lead:
---
section_id: Getting Started
nav_order: 3
title: Install Git and GitHub Desktop
---
Section content:
---
section: Getting Started
nav_order: 2
title: Configure Git
---
Learn-Static documentation and general web content is licensed Creative Commons Attribution-ShareAlike 4.0 International. Learn-Static code is licensed MIT. This license does not include external dependencies included in the "assets/lib" directory, which are covered by their individual licenses.