From d0aee175ea135852f9a8860bc42fb6b4756682ff Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Mon, 15 Nov 2021 00:05:04 -0800 Subject: [PATCH] Blog: Don't show footnotes in post preview This is the worst solution I possible could've done for this. --- scripts/template.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/template.py b/scripts/template.py index b35e9b4..1a4cf3c 100644 --- a/scripts/template.py +++ b/scripts/template.py @@ -6,7 +6,9 @@ from datetime import datetime from email import utils def remove_tags(text): - return re.sub(re.compile('<.*?>'), "", text) + text = re.sub(re.compile('>[0-9]<'), "", text) + text = re.sub(re.compile('<.*?>'), "", text) + return text def get_path(path, ext_in, ext_out): path = path[len("pages"):]