Skip to main content

Blo - a simple static blog generator

Project description

Blo (blog + bro) - yet another static site generator for personal blogs. The aim is to make a really easy tool for creating new notes and customizing your site. Do less actions and have much opportunity to make a unique site.

Features

  • Comfortable cli control.

  • Easy config edit in JSON files.

  • Drafts templates: default content for new notes, useful for planning new posts.

  • Page templates: easy HTML/Jinja2 customize and improve.

  • SEO friendly (as I could make it).

  • Microformats for better snippets in Google/Bing/etc.

  • Markdown with use of meta-tags to customize pages more with different data.

  • Code highlight with Pygments.

  • RSS feed generation

  • Pagination

Installation

pip install blo

Or download repo and execute:

python setup.py install

Usage

Create a new blog:

blo create myblog
cd myblog

Create a new page or post:

blo post hello-world

You can also use pipe with your favorite editor:

blo post hello-world | xargs subl

Build blog:

blo build

Run blog locally:

blo serve

Configure

Global site variables and technical paths are in default.json.

Templates for diffirent types of content are in draft_templates.json

Customize

Adding a custom type of content

You can add you page HTML templates for diffirent types of content.

  1. Add new HTML template to templates folder with a name of post type (ex. book.html)

  2. Add new draft template to draft_templates.json, you can also set an URL template and default content for new type of page

  3. Now you can make new type of posts: blo post just-for-fun --type book

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blo-0.8.tar.gz (10.0 kB view details)

Uploaded Source

File details

Details for the file blo-0.8.tar.gz.

File metadata

  • Download URL: blo-0.8.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for blo-0.8.tar.gz
Algorithm Hash digest
SHA256 443d308e7f562b778abae204a338f43e8e93d69743b59e5013c1375863a9a2e6
MD5 7a7549a602c9b38cb985c386ac35761b
BLAKE2b-256 c8d12604c0686f96f1d97e3b5ae6597282a11ace16cba344d1247e3f057d8c4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page