A professional portfolio template with automated builds, optimal performance, and free GitHub Pages hosting.
# Use this template
gh repo create your-username/your-username.github.io --template KristofferKarlAxelEkstrand/kristofferkarlaxelekstrand.github.io --public
# Or fork it
# Click "Fork" on GitHub
# Clone and setup
git clone https://github.com/your-username/your-username.github.io.git
cd your-username.github.io
npm install
npm run dev
- Free hosting - GitHub Pages deployment included
- Automatic builds - Push to deploy with GitHub Actions
- 90+ Lighthouse scores - Optimized for performance and SEO
- Mobile-first responsive - Works perfectly on all devices
- PWA ready - Installable with offline support
- Modern build pipeline - Sass, Babel, Terser, automated optimization
Edit these files to make it yours:
src/index.html
- Your content, experience, projectssrc/styles/main.scss
- Colors, fonts, layoutsrc/assets/logo.png
- Your logo (512×512px recommended)src/assets/logo.svg
- SVG version for scalable favicon (optional but recommended)
# Start developing
npm run dev # Live server + hot reload
# Build for production
npm run build # Full build with validation
- Enable Pages: Go to your repo → Settings → Pages
- Set source: Deploy from
/docs
folder onmain
branch - Push changes:
git push origin main
triggers automatic deployment - Visit your site:
https://your-username.github.io
Complete GitHub Pages setup guide →
# Development
npm run dev # Live server + file watching
npm run watch # CSS + JS watchers only
# Building
npm run build # Full production build
node build/build-manager.js fast # Development build (faster)
# Quality & Testing
npm run test # Run test suite (80% coverage required)
npm run validate # HTML validation + tests
npm run lint # Code formatting and style checks
npm run pretty # Auto-format all code
# Utilities
npm run size # Check build output file sizes
npm run clean # Remove build artifacts
npm run lighthouse # Performance audit
├── src/ # Source files (edit these)
│ ├── index.html # Your portfolio content
│ ├── styles/ # SCSS stylesheets
│ ├── scripts/ # JavaScript
│ └── assets/ # Images, logos
├── docs/ # Built site (auto-generated)
├── static/ # Static files (robots.txt, etc)
├── build/ # Build system scripts
└── test/ # Automated tests
- Modern tooling - Sass, Babel, Terser, PostCSS, Sharp
- Quality assurance - Jest tests, HTML validation, Lighthouse audits
- Developer experience - Hot reload, code formatting, comprehensive linting
- Production optimization - Minified CSS/JS/HTML, optimized images, PWA features
- Professional favicons - 9 favicon formats generated from PNG/SVG sources (supports theme switching)
- Issues - Report bugs or request features
- Documentation - Check
/reference
folder for detailed guides - Examples - See the live demo for implementation examples
ISC License - Free to use for personal and commercial projects.
Template created by Kristoffer Karl Axel Ekstrand