mirror of
https://github.com/lubuntu-team/blog.git
synced 2025-03-09 20:51:07 +00:00
Escape # (sort of) correctly.
This commit is contained in:
parent
c1110e2daf
commit
34bd802c8a
@ -1,4 +1,4 @@
|
||||
---
|
||||
title: This Week in Lubuntu Development \#1
|
||||
title: This Week in Lubuntu Development POUND1
|
||||
slug: this-week-in-lubuntu-development-1
|
||||
type: newsletter
|
||||
|
@ -65,6 +65,8 @@ def updatepost(infoyaml, md, post=None, title=None, slug=None):
|
||||
if not slug:
|
||||
slug = infoyaml["slug"]
|
||||
|
||||
title = title.replace("POUND", "#")
|
||||
|
||||
post.title = title
|
||||
post.content = md
|
||||
post.post_status = "publish"
|
||||
@ -84,7 +86,7 @@ def main():
|
||||
|
||||
post = None
|
||||
for post in posts:
|
||||
if post.title == infoyaml["title"]:
|
||||
if post.title == infoyaml["title"].replace("POUND", "#"):
|
||||
updatepost(post=post, title=post.title, infoyaml=infoyaml, md=md)
|
||||
post = True
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user