Posted on 2016-06-27
I am new to pelican, so in reality this is just the steps I used to setup my pelican blog. Feel free to experiment and do things differently.
Anytime you are using python, you should always utilize a virtual environment. In this tutorial we will use virtualenv. This will prevent us from junking up our global install of python.
For first timers I suggest visiting the hitchhiker's guide to python, as they have a very comprehensive tutorial on getting started with virtual environments.
Verify that your virtual environment is active so that we can start to install packages. Here we will install pelican and it's helper package Markdown.
pip install pelican Markdown
Now it's time to setup the site. Run the quick-start command and enter in details such as the site name and description.
Note: Make sure you decided on a catchy name!
Pelican comes with a default theme, which I personally dislike. It just doesn't capture my personality very well. Luckily there is a site called pelican themes that will give us a good selection of 3rd party themes we can use on our site.
I personally really like the flex theme. Clone the theme of your choice and prep for your first blog post. Make sure you setup your
pelicanconf.py file as deemed via the README in the themes repo.
Write your first post in markdown and place it inside the
Time to have pelican generate your static HTML blog for you! Just run the command below.
Simply upload your
output folder and enjoy!
Return to the homepage ⤾