src/config.ts, which contains site metadata, personal information, and branding details used throughout the portfolio.
Overview
The site configuration exports asiteConfig object that implements the SiteConfig interface, providing type-safe access to site metadata across all pages and components.
SiteConfig Interface
TheSiteConfig interface defines the structure for site configuration:
Configuration Fields
Personal or brand name displayed across the site.Value:
"Lewis Kori"Usage: Used in headers, footers, and metadataFull site title used for SEO and browser tabs. Includes name and value proposition.Value:
"Lewis Kori – Building Products, Systems, and Leverage"Usage:- Page title in
<title>tags - Open Graph titles
- SEO meta tags
The canonical URL of the site. Must be a complete URL including protocol.Value:
"https://lewiskori.com"Usage:- Canonical URLs
- Open Graph URL metadata
- Sitemap generation
- Social sharing
Comprehensive site description for SEO and social sharing. Explains the focus and purpose of the site.Value:
"Entrepreneur and product builder working at the intersection of technology, capital, and trust. Building platforms, advising institutions, and exploring how systems scale."Usage:- Meta description tags
- Open Graph descriptions
- Social media previews
- RSS feed descriptions
Short, memorable tagline or mission statement.Value:
"Building Products, Systems and Companies That Endure"Usage:- Hero sections
- About page headers
- Email signatures
Detailed author bio describing professional focus and expertise.Value:
"I am an entrepreneur and technologist focused on building scalable digital products, trusted platforms and businesses designed for long-term impact. My work spans product development, venture building and advisory across technology-driven markets."Usage:- About page
- Author bio sections
- Blog post author cards
Avatar image used for profile pictures and small displays.Value:
aboutImage (imported from @/assets/about-image.webp)Type: ImageMetadata (Astro’s optimized image type)Usage:- Profile pictures
- Blog author avatars
- Social media thumbnails
Larger profile image for hero sections and featured displays.Value:
profileImage (imported from @/assets/lewis-profile-no-bg.webp)Type: ImageMetadata (Astro’s optimized image type)Format: WebP with transparent backgroundUsage:- Homepage hero section
- About page header
- Large format displays
Geographic location of the site owner.Value:
" Kenya"Note: Contains leading spaces (may be intentional for formatting)Usage:- Contact page
- Footer information
- About page location details
Contact email address for inquiries.Value:
"[email protected]"Usage:- Contact page
- Footer contact links
- mailto: links
- Email obfuscation
Contact phone number with country code.Value:
"+254 712 345678"Format: International format with country code (+254 for Kenya)Usage:- Contact page
- Footer contact information
- tel: links
SocialData Interface
The file also exports aSocialData interface for social media links:
Display name of the social platform (e.g., “Twitter”, “GitHub”)
Full URL to the social media profile
Icon identifier or path for displaying platform icon
Accessibility label for screen readers
Complete Configuration Object
Usage Example
Import and use the site configuration in your Astro components:Image Assets
The configuration references two optimized image assets: Avatar Image- Path:
src/assets/about-image.webp - Format: WebP (optimized for web)
- Usage: Profile pictures, thumbnails
- Path:
src/assets/lewis-profile-no-bg.webp - Format: WebP with transparent background
- Usage: Hero sections, large displays
ImageMetadata and automatically optimized by Astro’s image service.
Related Configuration
- Astro Configuration - Core Astro framework settings
- Content Schema - Content collections definitions