Skip to content
Getting Started / Configuration

Getting Started

Configuration

Every site-level setting lives in one file: src/config/site.ts.

The config file

Everything configurable lives in src/config/site.ts. Change values there, no component edits required.

src/config/site.ts
export const siteConfig: SiteConfig = {
name: 'Alex Carter',
title: 'Alex Carter | Full-stack Developer',
description: 'Full-stack developer building fast, scalable web applications.',
url: 'https://example.com',
// ...
};

Important: set url to your production domain before deploying, since it drives canonical URLs, the sitemap, Open Graph tags, and the RSS feed.

Key sections

Author & socials

author controls the hero, about page, and structured data. social entries are optional: set any of them to undefined (or remove them) and the corresponding icons disappear everywhere automatically.

navigation: [
{ label: 'Home', href: '/' },
{ label: 'Blog', href: '/blog' },
{ label: 'Projects', href: '/projects' },
],

The header, footer, and mobile menu all read from this list. secondaryNavigation holds the lower-priority pages (Uses, Resume, Contact, Tags) shown in the footer’s More column and at the bottom of the mobile menu.

GitHub contribution graph

github: {
username: 'your-github-username',
},

The heatmap on the homepage is built at build time as a single SVG, no client-side JavaScript, and it scales to any screen without a scrollbar. Data comes from:

  1. GitHub’s GraphQL API when a GITHUB_TOKEN environment variable is present. Any personal access token with no scopes works; the included GitHub Pages workflow passes the Actions token automatically.
  2. Otherwise the public github-contributions-api.jogruber.de mirror, no setup needed.
  3. If both fail (offline build) deterministic sample data, so the build never breaks. The “sample data” label is shown in dev only.

Feature flags

Turn whole sections on or off:

features: {
blog: true,
projects: true,
docs: true,
search: true,
githubActivity: true,
newsletter: true,
comments: false,
},

Disabled features disappear from the homepage; remove their entries from navigation to hide them from the header too.

Newsletter

A plain HTML subscribe form (no JavaScript) shown on the blog index and under every post when features.newsletter is on. Point it at any endpoint that accepts a form POST:

newsletter: {
action: 'https://buttondown.com/api/emails/embed-subscribe/<your-username>',
emailField: 'email', // input name your provider expects
title: 'Get new posts by email',
description: 'One email when I publish something new.',
},

Works with Buttondown, ConvertKit (https://app.kit.com/forms/<id>/subscriptions, field email_address), Mailchimp embed URLs, or your own API.

Comments

Comments use giscus, which stores threads in GitHub Discussions: free, no database, spam-resistant. Setup takes two minutes:

  1. Enable Discussions on your site’s GitHub repository (Settings → General → Features).
  2. Install the giscus app on that repository.
  3. Open giscus.app, enter the repository, pick a category, and copy the generated repo, repoId, category, and categoryId values.
comments: {
repo: 'you/your-site',
repoId: 'R_kgDO…',
category: 'General',
categoryId: 'DIC_kwDO…',
mapping: 'pathname',
lang: 'en',
},

Then set features.comments to true. The embed loads lazily when scrolled into view and follows the theme toggle.

Social (Open Graph) images

Nothing to configure. A 1200×630 card is rendered at build time for the site, every post, and every project. See Writing content → Open Graph images. The design lives in src/lib/og.ts.

Stats

Homepage stats are plain config values, no third-party API calls:

stats: [
{ label: 'GitHub stars', value: '4.2k' },
{ label: 'Years of experience', value: '8' },
],

Career data

Experience, education, and certifications for the About and Resume pages live in src/config/resume.ts, typed and in one place.

↑↓ navigate↵ openesc close