The Ultimate Configuration Guide
Learn how to fully customize your website's branding, SEO, navigation, and features using the single source of truth: site.ts.
This template is designed with a "Single Source of Truth" philosophy. Almost every global aspect of your website—from the name in the header to the JSON-LD structured data for SEO—is controlled by a single file: config/site.ts.
Modifying config/site.ts is the first and most important step in personalizing your blog. It ensures consistency across all pages and simplifies future updates.
Core Site Information#
The siteConfig object starts with high-level identity settings. These are used in the browser title bar, meta tags, and the homepage hero section.
export const siteConfig = { name: "Base-Blog", title: "Base-Blog Simple & High-Performance Blog Boilerplate", tagline: "The simplest way to build a high-performance, developer blog.", description: "A clean, simple, and high-performance blog boilerplate built with Next.js, MDX, and Shadcn UI.", // ...}Tip: Your
taglineanddescriptionare critical for SEO. Ensure they contain your primary keywords while remaining engaging for human readers.
Branding & Themes#
You can toggle between a text-based logo and an image-based logo, and set your default theme preferences.
Logo Configuration#
Text Logo
logo: { text: "My Brand", image: null,}Image Logo
logo: { text: "My Brand", image: "/logo.svg", width: 120, height: 40,}Theme Customization#
Control the default appearance and whether users can toggle between light and dark modes.
theme: { defaultTheme: "system", // "light" | "dark" | "system" enableToggle: true,}Navigation & Social Links#
Easily manage your header and footer links. The social object is used for both visible links and automated SEO metadata.
mainNav: [ { title: "Home", href: "/" }, { title: "Blog", href: "/blog" }, { title: "About", href: "/about" },],- Twitter Config:
twitter: "basedev" - GitHub Config:
github: "basedev" - RSS Feed:
rss: "/feed.xml"
Feature Flags#
This template comes with powerful features that can be toggled on or off instantly.
- Global Search: Enable/disable the CMD+K search dialog.
- Reading Progress: Toggle the progress bar at the top of blog posts.
- Sitemap & RSS: Automated generation for SEO and syndication.
- Page Transitions: Smooth animations between page loads.
features: { search: true, rss: true, sitemap: true, codeHighlighting: true, pageTransitions: true, readingProgress: true,},Workflow: How to Customize#
Follow these steps to personalize your site in minutes.
- Open config/site.ts: Navigate to the
config/directory in your IDE. - Update Core Info: Change the
name,url, anddescriptionto match your project. - Configure Social Links: Add your handles to the
socialobject to enable automatic SEO and footer links. - Toggle Features: Decide which advanced features (Search, RSS, etc.) you want active.
- Verify Results: Run the development server and check your header, footer, and metatags.
Need More Help?#
If you want to dive deeper into custom styling beyond the config file, check out our other guides:
Did you know? The layout of the About and Contact pages is also managed in
site.ts. Look for theaboutandcontactobjects to update headings and sections without touching the page code!
Happy Customizing!