📘 See DISCLAIMER for legal and usage disclaimers related to this repository.
This project is a simple static website generator using Jinja2 templating and Bootstrap 5.3.3 for styling.
Sample Static Website generated using this repo is live here.
- Templated HTML pages with Jinja2
- Bootstrap 5.3.3 styling
- Modular header and footer includes
- Easy to extend with new pages
-
Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git cd your-repo-name
-
Set up a virtual environment (optional but recommended):
python -m venv myenv .\myenv\Scripts\activate # On Windows source myenv/bin/activate # On macOS/Linux
** On Windows**
-
Install dependencies:
pip install jinja2 staticjinja
-
Build the site:
staticjinja build --srcpath templates --outpath dist --static static
This will create a dist directory with the rendered HTML files and a copy of style.css
- Create a new template in the
templates/
directory, extending_base.html
. - Add your content in the
{% block body %}
section. - Rebuild the site with
staticjinja build
.