Hack the hosting
By convention the
distfolder is used for compiled code.
In our case we are going to change that for a FREE hosting hack. Edit the
config.yml file like this :
Use this command to build the website
$ foundation build
- [ ] Commit your changes
- [ ] Push to GitHub
On the repository of your project, go to Settings > Options > GitHub page
- [ ] Open a your favorite web browser and open https://<USER_NAME>.github.io/<PROJECT_NAME>
Link your own domain name
The lazy way
Go to Settings > Options > GitHub page and add your own domain name
The hacker way
There are a lot of solutions for using a custom domain with GitHub Pages. The simple one is to change your DNS.
- Update your A record for this adress
- Add a
CNAMEfile like this one
💡 protip: Each time
foundation watch create a CNAME file.