This is a template project that you can use as a base for your own website, generated by your own custom Static Site Generator, with Python.
Designed to be hosted on GitHub Pages, so this template includes a GitHub Actions workflow to automatically build and deploy the static site that is generated.
The script that generates the static site.
Contains the generated static site.
Contains the markdown files that will be converted to HTML.
Contains the static files that will be copied to the build folder.
Contains the HTML templates that will be used to generate the static site from.
- Click the green
Use this template
button in the top right andCreate a new repository
- Choose a descriptive repository name, like "My-Cool-Website" or something, and optionally fill in the description
- Click the green
Create repository
button in the bottom right - Once it's done, go to the
Settings
tab on the top - Go to the
Pages
section in the side bar on the left - Underneath Build and deployment, click the
Source
dropdown, and chooseGitHub Actions
- Scroll down a bit, and enable the
Enforce HTTPS
checkbox - Now go to the
Actions
tab on the top, and then go to theBuild
section in the side bar on the left - Click the
Run workflow
dropdown on the right, verify that it says "Branch: main
", and then click the greenRun workflow
button - After a few seconds, a new entry called "Build" should show up. Click that
- After another few seconds, the yellow circle should become a green checkmark
- The link to your website should show up now!