aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpyblog4
-rw-r--r--source/blog/index.md2
-rw-r--r--source/notes/index.md2
3 files changed, 4 insertions, 4 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))
diff --git a/source/blog/index.md b/source/blog/index.md
index 1520d6f0..4e117b4d 100644
--- a/source/blog/index.md
+++ b/source/blog/index.md
@@ -20,4 +20,4 @@ custom-css: "
Bon, je suppose que vous savez ce qu'est le principe d'un blog... :p
--- generate blog_list here --
+{% generate blog_list here %}
diff --git a/source/notes/index.md b/source/notes/index.md
index eb890d2e..ea914ac1 100644
--- a/source/notes/index.md
+++ b/source/notes/index.md
@@ -7,4 +7,4 @@ astuces qui, soit ne valent pas le coup, soit je n'ai pas encore pus prendre le
temps, de rédiger un article à leurs propos.
--- generate notes_list here --
+{% generate notes_list here %}