Static Blogging With Pelican
Follow Us:
Follow us on Twitter
Subscribe to our RSS
Static Blogging With Pelican
by Jon Buys - Jul. 02, 2013Comments (0)
Related Blog PostsSecond Crack: New Open Source Static Blogging EngineFive WordPress Plugins to Make You a Better BloggerBuild Your Site with JekyllTurn Your Blog Into a Book With BlogBookerFour Open Source Blogging Clients for Linux
The easiest way to write online might not be the best choice. If you are serious about building your online identity, putting your faith in a single companies platform puts you at risk of that company changing priorities, moving in a direction you no longer agree with, or just going away completely. The best way to go about building a site to last is to build it in a way that you can move it from place to place, server to server, with as little interruption as possible. This is what Pelican gives you, an open source tool that generates a static site you can upload to any server or cloud hosting provider. Getting started with Pelican is fairly easy, especially if you are familiar with Python development. Pelican installs with either easy_install or the preferred method with pip, the documentation has a basic walkthrough that should get you up and running quickly. After installing, find a good place in your filesystem and run pelican-quickstart to generate a basic skeleton. Once you have the basic skeleton, you will probably want to customize the themes a bit. The easiest way I found is to pick one of the themes in the online collection and start customizing it. Pelican uses the Jinja2 template engine internally, so the theme is built using a base.html file that is extended for each page and post created. The great thing about building Pelican themes is that they are all just HTML and CSS, with a bit of the Jinja2 syntax sprinkled about when appropriate. To test the new theme, create a markdown file in the “content” directory, and populate it with a bit of metadata at the top of the file: Title: Static Blog Publishing With PelicanDate: 2013-07-02 09:34Tags: opensource, blogging, pelican, pythonCategory: TechSlug: publishing-with-pelicanAuthor: Jon BuysSummary: Pelican is a static site generator that lets you own your work. Follow that up with the text of your post, using Markdown formatting, then save the file. To generate your site, run pelican from the top level of the project directory and Pelican will create the site in the “output” directory. Change directory into “output” and run python -m SimpleHTTPServer to start a basic web server running on port 8000 on your local machine. This lets you test out your formatting and make sure everything is looking as it should before uploading to the web. Once you are satisfied, it is a simple matter of rsync’ing the output directory to your hosting company. Pelican takes a bit of work to setup, but the result is a highly portable presence that you can push to any available web server. Pelican should install cleanly on most modern Linux desktops, or you could run it on your server, depending on your setup and what you have available. Once you are satisfied with the process of generating your site and pushing it to the server, much of the drudgery of the process can be automated, freeing up more of your time for getting your ideas out of your head and into text.
blogging pelican static
Previous: Fedora and Korora 19...Next: Citrix Takes XenServ... Browse Blog
Shailesh Patel uses OStatic to support Open Source, ask and answer questions and stay informed. What about you?
Share Your Comments
If you are a member, Sign in to have your comment attributed to you. If you are not yet a member, Join OStatic and help the Open Source community by sharing your thoughts, answering user questions and providing reviews and alternatives for projects.
Your Name
Email Address (kept hidden)
Your Comment *
Promote Open Source Knowledge by sharing your thoughts, listing Alternatives and Answering Questions!
Explore Software in this Blog Post
static has 0 reviews1 user
Featured MembersViewKhürt Williamshusband, father, security analyst, web developer a...
ViewShailesh PatelI am Shailesh Patel, who has 4+ years of experienc...
Related Questions
Get answers and share your expertise.
Have a question? Ask the community
Partner Center
Happening Now on OStatic
Adam Williamson commented on User Perceptions of systemd Better Than Anticipated
anonymous commented on User Perceptions of systemd Better Than Anticipated
anonymous commented on User Perceptions of systemd Better Than Anticipated
About OStatic
Terms of Service
Privacy Policy
Send Feedback
Powered by Vox Holdings
© 2013 OStatic. Built on fine Open Source Software from projects like
MySQL and
Sign in to OStatic
Username: *
Password: *
Not a member? Join NowI forgot my password