Skip to content

Commit

Permalink
Add use of variables to replace hard-coded department, number, semest…
Browse files Browse the repository at this point in the history
…er info.
  • Loading branch information
paciorek committed Dec 19, 2024
1 parent b42499f commit 80e993f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ website:
site-url: https://berkeley-cdss.github.io/course-site-quarto/
sidebar:
style: docked
title: "Dept 999"
title: "{{< var department-abbrev >}} {{< var number >}}"
logo: assets/stat_bear.png
logo-alt: "UC Berkeley Statistics logo"
tools:
Expand Down
6 changes: 5 additions & 1 deletion _variables.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
site-url: https://berkeley-cdss.github.io/course-site-quarto/
department: Department
department-abbrev: Dept
number: 999
name: Generic Class
semester: Spring 2025
4 changes: 2 additions & 2 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Department 999: Generic Class"
subtitle: "UC Berkeley, Spring 2024"
title: "{{< var department >}} {{< var number >}}: {{< var name >}}"
subtitle: "UC Berkeley, {{< var semester >}}"
listing:
- id: schedule
template: _extensions/qmd-lab/course-website-ejs/schedule-badge/schedule.ejs
Expand Down
4 changes: 2 additions & 2 deletions syllabus.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ title: "Syllabus"

Jump to:

- [About Department 999](#about-department-999)
- [About {{< var department >}} {{< var number >}}](#about)
- [Goals](#goals)
- [Prerequisites](#prerequisites)


## About Department 999
## About {{< var department >}} {{< var number >}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus lectus dui, euismod vel tellus sit amet, maximus fringilla risus. Cras nec maximus leo. Fusce sit amet tortor pellentesque, hendrerit odio vitae, dictum lorem. Nunc sed nunc nisl. Cras augue tortor, ultrices ut luctus non, dictum nec magna. Cras vel ex purus. In blandit est non finibus dignissim. Donec vehicula, nisi quis rutrum faucibus, est turpis ultrices nibh, quis rutrum diam nibh tempus nulla. Vestibulum malesuada consectetur ex in vestibulum.

Expand Down

0 comments on commit 80e993f

Please sign in to comment.