From e2dba1e1557b043d9e6b99f9365f859b28ac7734 Mon Sep 17 00:00:00 2001 From: Anubhav Sinha Date: Tue, 12 Apr 2016 09:15:25 +0530 Subject: [PATCH] adds a subtitle field to all blog posts --- plugins/blog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/blog.py b/plugins/blog.py index 7dc01d2..7e388da 100644 --- a/plugins/blog.py +++ b/plugins/blog.py @@ -48,6 +48,7 @@ def find(name): # Build a context for each post postContext = {} postContext['title'] = find('title') + postContext['subtitle'] = find('subtitle') postContext['author'] = find('author') postContext['date'] = find('date') postContext['path'] = page.path @@ -84,4 +85,4 @@ def preBuildPage(site, page, context, data): if post['path'] == page.path: context.update(post) - return context, data \ No newline at end of file + return context, data