mirror of
https://github.com/lubuntu-team/blog.git
synced 2025-05-04 08:51:27 +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
|
slug: this-week-in-lubuntu-development-1
|
||||||
type: newsletter
|
type: newsletter
|
||||||
|
@ -65,6 +65,8 @@ def updatepost(infoyaml, md, post=None, title=None, slug=None):
|
|||||||
if not slug:
|
if not slug:
|
||||||
slug = infoyaml["slug"]
|
slug = infoyaml["slug"]
|
||||||
|
|
||||||
|
title = title.replace("POUND", "#")
|
||||||
|
|
||||||
post.title = title
|
post.title = title
|
||||||
post.content = md
|
post.content = md
|
||||||
post.post_status = "publish"
|
post.post_status = "publish"
|
||||||
@ -84,7 +86,7 @@ def main():
|
|||||||
|
|
||||||
post = None
|
post = None
|
||||||
for post in posts:
|
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)
|
updatepost(post=post, title=post.title, infoyaml=infoyaml, md=md)
|
||||||
post = True
|
post = True
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user