Files
blog.ewpt3ch.dev/content/posts/creating-my-blog-using-nikola.md
T
2025-12-19 22:14:51 -07:00

1.4 KiB

title, slug, date, tags, draft
title slug date tags draft
creating my blog using Nikola creating-my-blog-using-nikola 2017-05-30T21:18:45-06:00
blog
documentation
web
nikola
false

I switched to Hugo, see this post

I decided to use Nikola. It produces a static site from txt files in various formats, I chose Markdown to be served directly by nginx on my server. Installation was pretty simple.

First make sure virtualenv is installed

$ sudo pip install virtualenv
$ test the install
$ virtualenv --version

Next we install Nikola

$ virtualenv nikola
$ source nikola/bin/activate
$ pip install --upgrade "Nikola[extras]"
Successfully installed Nikola

Now we have the tool installed, to exit the nikola environment use deactivate, everytime I blog use "source ~/nikola/bin/activate". Next we setup the site, without demo pages.

$ nikola init name_my_site
answer the questions in the wizard
edit path_to_blog/conf.py PAGES, POSTS, and COMPILERS to setup markdown
add a post
$ nikola new_post -e
rebuild the site
$ nikola build

Now we have a site that is ready for deployment to a server. Things that are coming later: scripts to enter and exit the virtualenv and deploy the posts automatically.