Git Product home page Git Product logo

happyblogger's Introduction

Abstract

Write your blog posts with org-mode, publish with Jekyll. There are other solutions for blogging with org-mode, but personally I think they are too cumbersome to use, lacks features, etc. There are many advantages with using org-mode instead of Jekyll's default Markdown, including proper source code syntax highlighting provided by Emacs (i.e your code will look the same in your editor and on your blog - no compromises).

Requirements

  • Emacs with org-mode
  • Jekyll or Hyde (my fork of Jekyll)
  • Hpricot (gem install hpricot)

Setup

  • Copy the statements in org-settings.el into your Emacs configuration (remember to modify the paths).

Usage

The best way to learn how to use this is to look at the source of an example blog, e.g. my personal one. There's also a small example blog in the sample/ folder. Here are the basic steps:

  • Create blog posts (one post per org-file), use tags on the toplevel outline to add post categories (the main title in the org file will actually be stripped away, the filename forms the post title, following Jekyll conventions).
  • Use M-x org-publish to export the org-files to HTML.
  • Run the pre-process.rb file from the top level of your Jekyll dir (~/blog/ in the example config). This script modifies the HTML from the previous step and makes them consumable by Jekyll. This step can be performed automatically by configuring the org publish-project.
  • Run jekyll.

Notes

  • The pre-process script is probably a bit too specific to the way I organize my posts. I guess it can be generalized quite a bit.

happyblogger's People

Contributors

bmaland 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.