Overview
The site configuration is managed through thesrc/config.ts file, which exports a siteConfig object containing all the essential information about your portfolio site.
SiteConfig Interface
The configuration object follows theSiteConfig interface with the following structure:
src/config.ts
Configuration Fields
Your name or brand name displayed throughout the siteExample:
'Lewis Kori'The main page title used for SEO and browser tabsExample:
'Lewis Kori – Building Products, Systems, and Leverage'A brief description of your site used for SEO meta tagsExample:
'Entrepreneur and product builder working at the intersection of technology, capital, and trust.'A short tagline that appears on your homepageExample:
'Building Products, Systems and Companies That Endure'A longer description about yourself used in structured data and author sectionsExample:
'I am an entrepreneur and technologist focused on building scalable digital products...'The avatar image displayed in the About sectionImport from assets:
import aboutImage from '@/assets/about-image.webp'The profile image used in various sections of the siteImport from assets:
import profileImage from '@/assets/lewis-profile-no-bg.webp'Your site’s primary URL used for canonical links and structured dataExample:
'https://lewiskori.com'Your location displayed in contact informationExample:
'Kenya'Your contact email addressExample:
'[email protected]'Your contact phone numberExample:
'+254 712 345678'Example Configuration
Here’s the complete example from the source code:src/config.ts
How to Customize
Add your images
Place your avatar and profile images in the
src/assets/ directory and update the importsMake sure to use optimized image formats like WebP for better performance. The recommended size for avatar images is 800x800px.
Using Config Values
ThesiteConfig object is imported and used throughout the site. Here’s how it’s typically used: