|
@@ -249,16 +249,15 @@ class Entry(object):
|
|
|
|
|
|
def prepare(self):
|
|
|
|
|
|
- self.body_html = markdown2.markdown(codecs.open(self.abspath, 'r').read(),
|
|
|
- extras=['fenced-code-blocks',
|
|
|
- 'hilite',
|
|
|
- 'tables', 'metadata'])
|
|
|
+ self.body_html = markdown2.markdown(
|
|
|
+ codecs.open(self.abspath, 'r').read(),
|
|
|
+ extras=['fenced-code-blocks', 'hilite', 'tables', 'metadata'])
|
|
|
+
|
|
|
self.header = self.body_html.metadata
|
|
|
|
|
|
if 'tags' in self.header:
|
|
|
self.header['tags'] = self.header['tags'].split(',')
|
|
|
|
|
|
-
|
|
|
self.date = self.header.get('published', datetime.date.today())
|
|
|
|
|
|
if isinstance(self.date, unicode):
|
|
@@ -332,7 +331,6 @@ def render_archive(entries):
|
|
|
os.path.join(CONFIG['output_to'],'archive/index.html')),
|
|
|
|
|
|
|
|
|
-
|
|
|
def find_new_posts_and_pages(db):
|
|
|
"""Walk content dir, put each post and page in the database"""
|
|
|
|