File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Features
14
14
Bugfixes
15
15
--------
16
16
17
+ * Avoid some rebuild loops (Issue #1747)
17
18
* Better error if two posts/pages output conflict (Issue #1749)
18
19
* Scanning of posts refactored out of core (Issue #1700)
19
20
* github_deploy records lastdeploy timestamp like regular deploy
Original file line number Diff line number Diff line change @@ -235,7 +235,14 @@ def __repr__(self):
235
235
m = hashlib .md5 ()
236
236
# source_path modification date (to avoid reading it)
237
237
m .update (utils .unicode_str (os .stat (self .source_path ).st_mtime ).encode ('utf-8' ))
238
- m .update (utils .unicode_str (json .dumps (self .meta , cls = utils .CustomEncoder , sort_keys = True )).encode ('utf-8' ))
238
+ clean_meta = {}
239
+ for k , v in self .meta .items ():
240
+ sub_meta = {}
241
+ clean_meta [k ] = sub_meta
242
+ for kk , vv in v .items ():
243
+ if vv :
244
+ sub_meta [kk ] = vv
245
+ m .update (utils .unicode_str (json .dumps (clean_meta , cls = utils .CustomEncoder , sort_keys = True )).encode ('utf-8' ))
239
246
return '<Post: {0} {1}>' .format (self .source_path , m .hexdigest ())
240
247
241
248
def _has_pretty_url (self , lang ):
You can’t perform that action at this time.
0 commit comments