aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-01-05 15:00:52 +0100
committerneodarz <neodarz@neodarz.net>2018-01-05 15:00:52 +0100
commitc7bcdbd9b52cb050490074940685602fadefb1f9 (patch)
treefa3425815a2a96acf803651bb149a1cc0a8f5c2c /pyblog
parent8a83abfec4f95b0e73e5fca34e087eb651e5731a (diff)
downloadmy_new_personal_website-c7bcdbd9b52cb050490074940685602fadefb1f9.tar.xz
my_new_personal_website-c7bcdbd9b52cb050490074940685602fadefb1f9.zip
fix list generationsource
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyblog b/pyblog
index f3d30b90..af211f33 100755
--- a/pyblog
+++ b/pyblog
@@ -322,7 +322,7 @@ def generate_menu():
lines = indexmd.readlines()
with open("build/"+html_file, 'w', encoding='utf-8') as indexmd:
for line in lines:
- indexmd.write(re.sub(r'-- generate menu here --', htmly_website_page, line))
+ indexmd.write(re.sub(r'<p>– generate menu here –</p>', htmly_website_page, line))
os.remove(tmppath)
@@ -403,7 +403,7 @@ def generate_situation1menu():
lines = indexmd.readlines()
with open("build"+document_file, 'w', encoding='utf-8') as indexmd:
for line in lines:
- indexmd.write(re.sub(r'-- generate situation1menu here --', htmly_website_page, line))
+ indexmd.write(re.sub(r'<p>– generate situation1menu here –</p>', htmly_website_page, line))
os.remove(tmppath)
@@ -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'<p>– generate blog_list here –</p>', 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'<p>– generate notes_list here –</p>', div_notes_list, line))