aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-07-29 17:16:40 +0200
committerneodarz <neodarz@neodarz.net>2018-07-29 17:16:40 +0200
commit28118458dc3d60f7eae4fdb3cb135085203b514e (patch)
tree757fdb165f6d4b7fcfaf825f1089fff5c50f0ccb /pyblog
parentddcf54c82dbec25c47ff2a99429df75b1ee5b6ca (diff)
downloadmy_new_personal_website-28118458dc3d60f7eae4fdb3cb135085203b514e.tar.xz
my_new_personal_website-28118458dc3d60f7eae4fdb3cb135085203b514e.zip
Fix bug
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyblog b/pyblog
index f3d30b90..9a764bf0 100755
--- a/pyblog
+++ b/pyblog
@@ -654,7 +654,7 @@ def generate_blog_list(feed):
lines = indexmd.readlines()
with open("build/blog/index.html", 'w', encoding='utf-8') as indexmd:
for line in lines:
- indexmd.write(re.sub(r'-- generate blog_list here --', div_blog_list, line))
+ indexmd.write(re.sub(r'{% generate blog_list here %}', div_blog_list, line))
def generate_notes_list():
@@ -740,7 +740,7 @@ def generate_notes_list():
lines = indexmd.readlines()
with open("build/notes/index.html", 'w', encoding='utf-8') as indexmd:
for line in lines:
- indexmd.write(re.sub(r'-- generate notes_list here --', div_notes_list, line))
+ indexmd.write(re.sub(r'{% generate notes_list here %}', div_notes_list, line))