Pelican 3.0 – Static Site Generator, Powered by Python – Features



Pelican 3.0 – Static Site Generator, Powered by Python – Features

0 0


presentacion_pelican


On Github RaiderColombia / presentacion_pelican

Pelican 3.0

Static Site Generator, Powered by Python

Features

  • Articles (e.g., blog posts) and pages (e.g., “About”, “Projects”, “Contact”)s
  • Comments, via an external service (Disqus). If you prefer to have more control over your comment data, self-hosted comments are another option. Check out the Pelican Plugins repository for more details.
  • Theming support (themes are created using Jinja2 templates)
  • Publication of articles in multiple languages

More Features

  • Atom/RSS feeds
  • Code syntax highlighting
  • Import from WordPress, Dotclear, or RSS feeds
  • Integration with external tools: Twitter, Google Analytics, etc. (optional)
  • Fast rebuild times thanks to content caching and selective output writing

Why the name “Pelican”?

“Pelican” is an anagram for calepin, which means “notebook” in French. ;)

Source code

You can access the source code at: https://github.com/getpelican/pelican

How to get help, contribute, or provide feedback

See our feedback and contribution submission guidelines.

Installation

Install Pelican (and optionally Markdown if you intend to use it) on Python 2.7.x or Python 3.3+ by running the following command in your preferred terminal, prefixing with sudo if permissions warrant:

pip install pelican markdown

Create a project

First, choose a name for your project, create an appropriately-named directory for your site, and switch to that directory:

mkdir -p ~/projects/yoursite
cd ~/projects/yoursite

Create a skeleton project via the pelican-quickstart command, which begins by asking some questions about your site:

pelican-quickstart

Create an article

You cannot run Pelican until you have created some content. Use your preferred text editor to create your first article with the following content:

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

Following is a review of my favorite mechanical keyboard

Given that this example article is in Markdown format, save it as

~/projects/yoursite/content/keyboard-review.md.

Generate your site

From your project directory, run the pelican command to generate your site:

pelican content

Your site has now been generated inside the output directory. (You may see a warning related to feeds, but that is normal when developing locally and can be ignored for now.)

Preview your site

Open a new terminal session and run the following commands to switch to your output directory and launch Python’s built-in web server:

cd ~/projects/yoursite/output
python -m SimpleHTTPServer

Preview your site by navigating to http://localhost:8000/in your browser.

THE END

By Jhon Ramirez

raidercolombia.github.io