Skip to content

Instantly share code, notes, and snippets.

@jacegu
Created March 22, 2011 20:53
Show Gist options
  • Save jacegu/882020 to your computer and use it in GitHub Desktop.
Save jacegu/882020 to your computer and use it in GitHub Desktop.
A example showing the file format of the blog posts
Post explaining how the blog file format works.
#title:
The post file format
#description:
Showing the file format that the blog posts have in my blog engine
#date:
2011-03-22 22:00
#body:
%p
This post is generated from a file.
Even the showcase below this post is also a file.
It is identical to the
%a(href="/preview") preview page
that was the blog home until now.
%p
The content of the file with this post is:
%script(type="text/javascript" src="https://gist.github.com/882020.js")
%p
Esentially the post file format has 5 parts.
%ul
%li
<u><b>Header</b></u>: Everything until de title keyword
is ignored, so you can put in here whatever you want.
%li
<u><b>Title</b></u>: I think you can figure out what this is ;·)
%li
<u><b>Description</b></u>: Will be used to generate the
%span(class="code") description
meta on individual post pages for SEO purposes.
%li
<u><b>Date</b></u>: The date and time the post will be published at.
It will be added to the post layout soon
(I haven't found a design I like enough).
%li
<u><b>Body</b></u>: The content of the post. It handles plain text,
HTML and HAML code. (Actually it handles everything HAML engine does).
%p And thats it. Check out the awesome HTML it outputs. Hope you like it.
%p :·)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment