Useful Pelican commands :

  • Upgrade pelican python -m pip install --upgrade pelican

  • Quickstart pelican-quickstart

  • Sample article

    • Simple : ``` Title: My First Review Date: 2010-12-03 10:20 Category: Review

    Following is a review of my favorite  MacBook Pro keyboard.
    ```

    • with Metadata ``` Title: My super title Date: 2010-12-03 10:20 Modified: 2010-12-05 19:30 Category: Python Tags: pelican, publishing Slug: my-super-post Authors: Alexis Metaireau, Conan Doyle Summary: Short version for index and feeds

    This is the content of my super blog post. ```

  • Generate site pelican content

  • Preview site pelican --listen

  • Listen changes on Local-Server

    • start server : make devserver
    • stop server : stop server
    • auto reload : pelican --autoreload --listen
  • Publish on github pages :

    • install ghp : pip install ghp-import
    • generate output : pelican content -o output -s pelicanconf.py
    • import output : ghp-import output
    • push to remote : git push origin gh-pages
  • Pelican themes

    • list of installed themes

      • pelican-themes -l or
      • pelican-themes --list
    • install new theme

      • pelican-themes --install <theme-local-path> --verbose
      • use this for creating shortcut : pelican-themes --symlink <theme-path>
    • Remove existing theme
      • pelican-themes --remove <theme-name>
  • Some of favorites themes

Comments