Substitute : as well, because it's a YAML keyword.

This commit is contained in:
Simon Quigley 2018-11-01 17:52:04 -05:00
parent cb5a05fe05
commit f755b7a162
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
--- ---
title: Disco Dingo: The development cycle has started! title: Disco DingoCOLON The development cycle has started!
slug: disco-start slug: disco-start
type: ["newsletter"] type: ["newsletter"]

View File

@ -116,7 +116,7 @@ def main():
post = None post = None
for post in posts: for post in posts:
if post.title == infoyaml["title"].replace("POUND", "#"): if post.title == infoyaml["title"].replace("POUND", "#").replace("COLON", ":"):
updatepost(post=post, title=post.title, infoyaml=infoyaml, md=md) updatepost(post=post, title=post.title, infoyaml=infoyaml, md=md)
post = True post = True
break break