Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Add 201 slides for Lecture 1
Browse files Browse the repository at this point in the history
  • Loading branch information
anli5005 committed Jan 19, 2024
1 parent 54df567 commit 2793dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file added content/lectures/01-intro/slides-201.pdf
Binary file not shown.
5 changes: 3 additions & 2 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ export const Lecture = defineDocumentType(() => ({
files: {
type: 'list',
resolve: page => {
const contents = readdirSync(join(dirname(fileURLToPath(import.meta.url)), "../../../content", page._raw.sourceFileDir))
return contents.filter(file => file !== "data.yaml" && !file.startsWith(".")).toSorted((a, b) => {
const contents = readdirSync(join(dirname(fileURLToPath(import.meta.url)), "../../../content", page._raw.sourceFileDir)).filter(file => file !== "data.yaml" && !file.startsWith("."))
console.log(`Files for ${page._raw.sourceFileDir}: ${contents}`)
return contents.toSorted((a, b) => {
// Sort anything that starts with "slides" first
if (a.startsWith("slides") && !b.startsWith("slides")) return -1
if (!a.startsWith("slides") && b.startsWith("slides")) return 1
Expand Down

0 comments on commit 2793dbd

Please sign in to comment.