Installing Pelican for the first time again

By jeffmackinnon


I already did this for this page and my company, but I'm moving our family archive too.

Step One Set Up the Python environment

First, set up your environment, I'm using pipenv install , you may be doing something else.

Step two, Install Pelican and plugins

Then install pelican and the plugins that you are planning to be using. See what I'm using here.

You will also need BeautifulSoup4 and lxml to import from a Wordpress site. You can do that with -> pip install BeautifulSoup4 lxml

Step three, quickstart pelican

Within the same python environment that you installed pelican and within the folder that you want to have the site type pelican-quickstart.

the start of the setup

For now I want the makefile built, but I don't put all the important stuff in it yet.

Step four, get ready to import the old wordpress site

Now I just need to make a export file of the existing wordpress site and import it into this pelican site.

Where you create the export file. Get all the content

Place that file in your project directory (it just makes it easier)

Directory Screenshot

Then you just put this -> pelican-import --wpfile -o output familyarchive.WordPress.2021-12-20.xml into the command line.

If you make sure that you NEVER delete your output folder AND you have the same URL as before you can be done and start building your site the way that you want.

And profit

For me, I will copy those files to the content folder and reconfigure them such that they are integrated directly into the process. For this archive site and my homepage this isn't a huge task. For my company site it has been a huge undertaking, but it has given me a chance to edit my posts and determine the ones that I want to keep and the ones that should sit as draft and get some major editing.

This post is part 1 of the "How I Pelican" series:

  1. Installing Pelican for the first time again
  2. I updated a theme
  3. EXIF data with a pelican-photos Gallery
  4. V1 of the theme published
  5. Custom CSS per page or article with pelican
  6. Batch Files are your friend
  7. Jeff's Pelican SSG Theme