How to Create a Pelican Website

Have the dependencies ready and create a directory for your project

$ python -m pip install "pelican[markdown]"
$ pip install ghp-import
$ mkdir blog
$ cd blog

Run the command to kickstart the site generation

$ pelican-quickstart

Depending on your needs, choose from the available options

> Where do you want to create your new web site? [.] .
> What will be the title of this web site? [What you want to call your site]
> Who will be the author of this web site? [You can also add this]
> What will be the default language of this web site? [specify your language: English is default]
> Do you want to specify a URL prefix? e.g., https://example.com   (Y/n) y
> What is your URL prefix? (see above example; no trailing slash) https://[yoursitename].github.io
> Do you want to enable article pagination? (Y/n) y
> How many articles per page do you want? [10] 6
> What is your time zone? [Europe/Rome]
> Do you want to generate a tasks.py/Makefile to automate generation and publishing? (Y/n) y
> Do you want to upload your website using FTP? (y/N) n
> Do you want to upload your website using SSH? (y/N) n
> Do you want to upload your website using Dropbox? (y/N) n
> Do you want to upload your website using Rackspace Cloud Files? (y/N) n
> Do you want to upload your website using GitHub Pages? (y/N) y
> Is this your personal page (username.github.io)? (y/N) y

Then you can run these commands:

$ pelican content
$ make devserver
$ git init
$ git remote add origin https://github.com/[your_remote_repo_in_github].github.io.git
$ make github

If everything goes fine, then you can go to the sitename.github.io which you created in the "What is your URL prefix" question prompt.

links

social