- Click the button above (or go to repo → Code → Codespaces → Create codespace on main)
- Wait ~2-3 minutes for the environment to set up
- Run the dev server:
pnpm dev
- A preview window will automatically open
- Edit files in
content/posts/and see live changes! - Commit and push when done
Free Tier Limits:
- GitHub Free: 120 core-hours/month (~60 hrs on 2-core machine)
- GitHub Pro: 180 core-hours/month (~90 hrs on 2-core machine)
- Auto-stops after 30 min idle (just close the tab when done!)
- Check usage: github.com/settings/billing
pnpm install
pnpm devVisit http://localhost:3000
- Open the project in Codespaces (see above)
- Create a new file in
content/posts/namedyour-post-title.md - Copy content from
.github/BLOG_POST_TEMPLATE.md - Edit your post and preview live at port 3000
- Commit and push
- Copy content from
.github/BLOG_POST_TEMPLATE.md - Go to
content/posts/on GitHub - Click "Add file" → "Create new file"
- Name it:
your-post-title.md(lowercase, hyphens) - Paste the content from
.github/BLOG_POST_TEMPLATE.md. Frontmatter should look like this:--- title: "Your Post Title" date: "2025-12-02" # YYYY-MM-DD author: "Your Name" excerpt: "Brief summary (1-2 sentences)" featuredImage: "/uploads/2025/12/image.jpg" categories: ["Education"] # "Presentation, "Travel, "Education", "Announcement", "Video", "Defense", "Publication", "Social" tags: [] seoTitle: "Your Post Title - Preferred.AI" seoDescription: "Brief summary for SEO" ---
- Write your content in Markdown. Upload images to
public/uploads/YYYY/MM/first if needed. - Commit to a new branch and create a Pull Request
-
Clone the repository:
git clone https://github.com/PreferredAI/PreferredAI.github.io.git cd PreferredAI.github.io -
Install dependencies:
pnpm install
-
Create a new Markdown file in
content/posts/using the template from.github/BLOG_POST_TEMPLATE.md. -
Start the development server:
pnpm dev
-
Open http://localhost:3000 to preview your post.
-
Once satisfied, commit your changes to a new branch and push to GitHub. Create a Pull Request for review if needed.
- Edit name, image (path), title, link in
src/data/team.tsx - Upload corresponding images to
public/uploads/YYYY/MM/
- Edit photo details (path, date, location) in
src/data/teamPhotos.ts - Upload corresponding images to
public/team/