public
Description: Micro-blog with erubis and markdown and auto-publishing with git commit hook (in about 20 lines of code)
Homepage:
Clone URL: git://github.com/zackchandler/squawk-micro.git
zackchandler (author)
Sat Feb 16 14:48:06 -0800 2008
commit  6163c1f9b94401b0d7bddc5ef4ca15a76d662b47
tree    b74445d442fbee33533bd48f8db7b19d9d2507cd
parent  36da5829e56172a0fed28ecfa9693c2ef15915c5
squawk-micro / README.txt
100644 46 lines (28 sloc) 0.691 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
### Requirements ###
Ruby
Git
Rake
Erubis gem
BlueCloth gem
 
### Get started ###
 
Clone squawk-micro
 
$ git clone git@github.com:zackchandler/squawk-micro.git
$ cd squawk-micro
 
Setup commit hook
 
Edit .git/hooks/post-commit file to say:
 
#!/bin/sh
rake publish
 
Set as executable
 
$ chmod +x .git/hooks/post-commit
 
Make posts in the posts/ directory in this format:
 
posts/001-first-post
or
posts/002_second_post
 
Commit changes
 
$ git add .
$ git commit -a -m 'Should auto-publish blog on commit'
 
A site directory will be created on commit containing your published blog.
 
Open site/index.html to see your blog.
 
### Rake ###
 
You can also build via rake:
 
$ rake publish