Welcome to your new blog powered by your new blog! This guide will help you get started with setting up and customizing your blog.
Initial Setup
1. Configure Your Site
Edit src/consts.ts to customize your site information:
export const SITE: Site = { title: 'Your Blog Name', description: 'Your blog description', href: 'https://yourdomain.com', author: 'your-author-id', // ...}2. Update Navigation
Customize your navigation links in src/consts.ts:
export const NAV_LINKS: SocialLink[] = [ { href: '/blog', label: 'Blog' }, { href: '/about', label: 'About' }, // Add more links as needed]3. Add Your Social Links
Update your social media links:
export const SOCIAL_LINKS: SocialLink[] = [ { href: 'https://github.com/username', label: 'GitHub' }, { href: 'https://twitter.com/username', label: 'Twitter' },]Creating Content
Blog Posts
Create new blog posts in src/content/blog/:
- Create a folder for your post:
src/content/blog/my-post/ - Add an
index.mdxfile with frontmatter:
---title: "My First Post"description: "A brief description"date: 2025-01-16tags: ["tag1", "tag2"]draft: false---- Write your content using Markdown or MDX
Tip
Pro Tip: You can use MDX components like Callout, Code blocks, and more in your posts!
Author Profiles
Create author profiles in src/content/authors/:
---name: 'Your Name'avatar: 'https://gravatar.com/avatar/...'bio: 'Your bio'github: 'https://github.com/username'---Customization
Colors
Edit src/styles/global.css to customize your color scheme:
:root { --primary: hsl(214 95% 52%); /* Customize other colors */}Homepage Experience
Edit src/pages/index.astro to customize your experience timeline:
const experience: ExperienceItem[] = [ { role: 'Your Role', company: 'Company Name', period: '2020 - Present', current: true, icon: 'lucide:briefcase', key: 'Your achievements and responsibilities' },]Optional Features
Newsletter (Brevo)
- Sign up for Brevo
- Get your API key
- Add to
.env:BREVO_API_KEY=your-api-keyBREVO_LIST_ID=your-list-id
Disqus Comments
- Create a Disqus account
- Add to
.env:PUBLIC_DISQUS_SHORTNAME=your-shortname
Analytics
Add Google Analytics or Umami:
PUBLIC_GOOGLE_ANALYTICS_ID=G-XXXXXXXXXXPUBLIC_UMAMI_WEBSITE_ID=your-umami-idNext Steps
- Delete example content - Remove
hello-worldandgetting-startedposts - Update About page - Customize
src/pages/about.astro - Update Privacy & Terms - Review and customize legal pages
- Add your content - Start writing your blog posts!
Resources
Happy blogging! 🎉