Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 174 Bytes
import os
for f in os.listdir('_posts'):
f = '_posts/%s' % f
lines = open(f).readlines()
lines.insert(1, "layout: post\n")
open(f,'w').write("".join(lines))