Skip to content

Commit a403a21

Browse files
committedMay 5, 2015
properly fix #1689 by removing updated
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent c92fd45 commit a403a21

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎CHANGES.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
New in master
22
=============
33

4+
Features
5+
--------
6+
47
Bugfixes
58
--------
69

‎nikola/post.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -897,10 +897,10 @@ def get_metadata_from_meta_file(path, config=None, lang=None):
897897
# a 1-file post.
898898
return get_metadata_from_file(path, config, lang), newstylemeta
899899
else:
900-
while len(meta_data) < 8:
900+
while len(meta_data) < 7:
901901
meta_data.append("")
902-
(title, slug, date, updated, tags, link, description, _type) = [
903-
x.strip() for x in meta_data][:8]
902+
(title, slug, date, tags, link, description, _type) = [
903+
x.strip() for x in meta_data][:7]
904904

905905
meta = {}
906906

@@ -910,8 +910,6 @@ def get_metadata_from_meta_file(path, config=None, lang=None):
910910
meta['slug'] = slug
911911
if date:
912912
meta['date'] = date
913-
if updated:
914-
meta['updated'] = updated
915913
if tags:
916914
meta['tags'] = tags
917915
if link:

0 commit comments

Comments
 (0)
Please sign in to comment.