9  Build and publish the cohort website

Each cohort gets its own website, generated from the gitforsci-dev/website template into your iteration org. The website is the learners’ home base: it holds the pre-course work, the schedule, and links to everything. This chapter is the checklist to generate it, fill in its details, render it, and publish it.

Replace the iteration tag 001 with your own throughout (for example cis).

9.1 Step 1: Generate the site from the template

This produces gitforsci-001/website as an independent repository with clean history and no live link back to the template. It is a frozen snapshot you can edit freely without affecting the template or other cohorts.

New educator — if the Use this template button is missing, the template flag is not set on gitforsci-dev/website. Go back to Chapter 8, step 2, and check Template repository in its settings.

9.2 Step 2: Clone the new website locally

9.3 Step 3: Fill in the iteration variables

The template uses two configuration files. _variables.yml holds the values that change every cohort; _quarto.yml is the site configuration. Open _variables.yml and replace every placeholder with this cohort’s real values.

Fields you will set in _variables.yml:

Field What to put
Course title The human-readable course title (“Git for Scientists”)
Iteration This cohort’s tag (001 or cis)
Cohort label A free-form label, for example “Spring 2026”
Start and end dates ISO dates for the cohort
Timezone The IANA timezone for live sessions
Course website URL The published URL of this site
GitHub organization gitforsci-001
Instructor name, ORCID, affiliation, GitHub, email Your details
Important

Do not invent values you do not have. Leave a field as its placeholder, or as a clearly marked “to fill in,” rather than guessing a URL, ORCID, or DOI. A placeholder is honest; a wrong value is a bug a learner will hit.

9.4 Step 4: Update the site configuration

Open _quarto.yml and update the fields that are specific to this cohort:

Field What to put
Project / site title Match the iteration
Site URL The published URL of this cohort site
Repository URL https://github.com/gitforsci-001/website
Repository branch Usually main

9.5 Step 5: Render the site locally

If the variables show as placeholders in the rendered pages, you missed an entry in step 3.

9.6 Step 6: Publish the site

9.7 Optional: web analytics

If you want to know how learners use the site, add privacy-friendly analytics with Plausible (https://plausible.io):

This is optional. The workshop runs fine without it.

9.8 Verify as the test-learner

A site that a logged-out learner can read end to end is ready to hand out.