devsoc-unsw / freerooms

A web application designed to aid UNSW students in finding vacant rooms.
https://freerooms.devsoc.app/
Other
18 stars 1 forks source link

feature: make room pages googleable #483

Open francojreyes opened 2 months ago

francojreyes commented 2 months ago

I just saw that individual course pages on Unilectives are googlable:

image

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".

SkellyBG commented 1 month 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?