blog.opentechstrategies.com
This is OTS's blog backend. It contains:
- Pelican config
- Jinja templates
- Blog posts, pages, uploaded media
Developing And Writing Posts
In a terminal, do this:
git clone https://code.librehq.com/ots/ots-blog.git
cd ots-blog
./bin/build
./bin/serve
Then you can view the site on localhost:8000.
New posts go in sites/content/posts/
. When a post is ready, add it
to the website:
git add PATH/TO/POST
git commit -m "Add new post"
git push
TODO: add instructions for actually taking a post live. Theoretically, they
should be able to just rsync it somewhere, but maybe we should check out the
repo server-side and then do a git pull
and bin/build
.
Dependencies
You will need Pelican with the markdown plugin. You can install it with:
pip install -r requirements.txt
You might have to fiddle with a virtual environment, but that will be specific to your system, so I leave that to you.