Code Monkey home page Code Monkey logo

blo's Introduction

Blo

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

blo's People

Contributors

savuir avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.