The questions and answers on the FAQ page (/faq).
- Content location:
src/content/faq/ - Rendered by:
src/pages/faq.astro - Schema source of truth:
src/content/config.ts
Each Markdown file is one category containing a list of question/answer
items. Existing categories include general, research, administrative, and
on-campus-resources.
-
Open the category file in
src/content/faq/(e.g.general.md). -
Add an item to the
itemslist:items: - question: "How do I join the lab?" answer: "Email the PI with your CV and research interests." externalLink: "https://example.com/apply" # optional
-
Validate:
npm run build.
-
Create a new Markdown file in
src/content/faq/, e.g.funding.md. -
Add the frontmatter:
--- category: "Funding" icon: "💰" # optional emoji order: 5 # optional items: - question: "Are RA positions funded?" answer: "Yes, depending on current grants." ---
-
Validate:
npm run build.
- Update an answer: edit the relevant
itemsentry in the category file. - Remove a question: delete that item from the
itemslist. - Remove a category: delete the category's Markdown file.
- Validate:
npm run build.
| Field | Required | Notes |
|---|---|---|
category |
Yes | Section heading |
icon |
No | Emoji shown next to the category |
order |
No | Sort order (lower first) |
items[] |
Yes | List of questions |
Each items[] entry: question (required), answer (optional),
externalLink (optional).