Take full control of your static website/blog generation by writing your own simple, lightweight, and magic-free static site generator in Python. That's right! Reinvent the wheel, fellas!
This project is a fork from https://github.com/sunainapai/makesite, please visit the original project for the original Readme.
pip3 install -r requirements.txtpython3 makesite.py --env dev
cd _site
python3 -m http.server 8000This fork implements the following features that do not exist in the original version:
- Uses Jinja2 to render templates
- Easy customization with variables stored in vars.py
- Multiple environments (
dev,prod...) defined in vars.py. A build for a specific environment can be done withpython makesite.py --env prod - Ability to add additional parsing with a file
add_parser.py(see add_parser.py.sample) - Date format customization from vars.py
- Template variables (
{{ blog_recent }},{{ news_recent }}...) to show a list of the 5 most recent items in a section
sunainapai for the original project and Susam for the original documentation and the unit tests.
This is free and open source software. You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of it, under the terms of the MIT License.
This software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or implied. See the MIT License for details.
To report bugs, suggest improvements, or ask questions, please visit:
- https://github.com/gabfl/makesite/issues for this fork
- https://github.com/sunainapai/makesite/issues for the original project