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

pull/1/head
Simon Quigley 6 years ago
parent cb5a05fe05
commit f755b7a162

@ -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"]

@ -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

Loading…
Cancel
Save