Static blog generator based on Pelican (https://github.com/getpelican/pelican) and used for https://blog.nrbrt.com
- Clone repository:
git clone git@github.com:stueken/blog.git
- Change to directory:
cd blog
- Create a virtualenv:
pyenv virtualenv [PYTHON_VERSION] blog
- Activate virtualenv for local directory:
pyenv local blog
- Install packages:
pip install -r requirements.txt
- Copy environment example file:
cp .env_sample .env
- Adjust paremeters in
.env
- Add image directory for photos plugin:
mkdir -p content/images
- Build local version of site:
invoke build
- Serve site locally under http://localhost:8000:
invoke serve