Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.09 KB

File metadata and controls

42 lines (33 loc) · 1.09 KB

Course-website-ejs Extension For Quarto

A collection of ejs templates for a course website.

Installing

quarto add qmd-lab/course-website-ejs

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

Using

You use these ejs templates by providing a path to them in the listings yaml of the document in which you'd like it to be applied. For example:

---
title: Course 101
subtitle: My University
listing:
  - id: schedule-listing
    contents: scheduled-docs_files/schedule.yml
    template: '_extensions/qmd-lab/course-website/schedule-1.ejs'
---

Certain ejs templates will have additional behavior depending on the profile profile. If you are using such a template on a document, turn on the course-website-ejs filter in the document metadata.

---
title: Course 101
subtitle: My University
filters:
  - course-website-ejs
listing:
  - id: schedule-listing
    contents: scheduled-docs_files/schedule.yml
    template: '_extensions/qmd-lab/course-website/schedule-1.ejs'
---