Skip to content

template of a static web site, with continuous deployment on github pages.

License

Notifications You must be signed in to change notification settings

cheroliv/static-site-jbake

Repository files navigation

Static site jbake

Create a static site with jbake

Fork the static-site-jbake repository

Fork and rename in username.github.io format in order to have a simplified url.

Retrieve the code locally:

Open a terminal and go to the project’s parent folder.
Replace {username} and {repository_name}, the data in braces with your values (without the braces).

git clone https://github.com/{username}/{repository_name}.git

Install tools: curl, sdkman, java & gradle

sudo snap remove curl;
sudo apt install curl;
curl -s "https://get.sdkman.io" | bash;
sdk i java 19.0.2-tem;
sdk i gradle;

Local execution

./jbake.sh

Then navigate to http://localhost:8820 in your web browser.
If the script does not have sufficient permissions

chmod u+x jbake.sh

TODO: Deployment to github-pages