This repository contains the source code for my personal web portfolio.
This web portfolio is configured to deploy to GitHub Pages using a git submodule setup:
- Main Repository: Contains the source code, content, and configuration
- Submodule (
public/): Points tomartimfasantos.github.iorepository for GitHub Pages deployment
-
Clone the repository with submodules:
git clone --recursive https://github.com/martimfasantos/web-portfolio.git cd web-portfolio -
If you've already cloned without submodules, initialize them:
git submodule update --init --recursive
-
Start the development server:
hugo server -D
-
View your site: Open your browser and navigate to
http://localhost:1313
This site uses a two-repository setup for GitHub Pages deployment:
-
Build the site:
hugo
-
Navigate to the public directory:
cd public -
Commit and push changes to the submodule:
git add . git commit -m "Update site content" git push origin main
-
Return to the main repository and update the submodule reference:
cd .. git add public git commit -m "Update submodule reference" git push origin main
You can use the provided deploy.sh script to automate the deployment process:
./deploy.shLive Site: martimfasantos.github.io