Open francojreyes opened 2 months ago
https://github.com/devsoc-unsw/unilectives/blob/main/frontend/src/app/course/%5Bid%5D/page.tsx#L22 https://nextjs.org/docs/app/api-reference/functions/generate-metadata
our current room/[room] route is a client component and so can't have metadata attached to it. We'll need to split the inner components into a client component and have a server component wrapper? I think?
I just saw that individual course pages on Unilectives are googlable:
Would be cool if it happened for Freerooms too, I'm sure people google rooms occasionally when looking for a room. Freerooms won't be very helpful to them but at least they'll learn it exists xd
Will probably involve generating different metadata (titles, tags, description) for each page rather than them all just being "Freerooms".