website-v7

Website powered by Hugo, theme forked from codex

Dependencies

Setting up Python

you can create a virtual environment using

$ python3 -m venv hugo
$ source hugo/bin/activate

And install the packages using

$ pip install -r requirements.txt

Fetch latest book list

If you're running this locally, you will need to setup GOODREADS_KEY (api key) and GOODREADS_SECRET (api secret) environment variables

$ export GOODREADS_KEY=XXXXXXXXXXXXXXXXXXXXX
$ export GOODREADS_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
$ python scripts/main.py

Running dev server

$ hugo server -D

Production build

$ hugo --gc --minify