From 19809d2f43bf00d8a802988afd8f3c86f46c7628 Mon Sep 17 00:00:00 2001 From: hsy-0126 <73582197+hsy-0126@users.noreply.github.com> Date: Tue, 22 Jun 2021 11:17:21 +0800 Subject: [PATCH 01/11] Update search.html --- templates/search.html | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/templates/search.html b/templates/search.html index 1d83679..7168b8f 100644 --- a/templates/search.html +++ b/templates/search.html @@ -5,7 +5,7 @@ {{ message }} {% endif %} - {% if articles%} + {% if articles %} @@ -36,18 +36,20 @@ {% endif %} - {% if comments%} + {% if comments %} + {% if comments[0] %}
- - - - - - - - - - {% for comment in comments %} + + + + + + + + + {% endif %} + + {%for comment in comments%} @@ -55,8 +57,18 @@ {% endfor %} + + + + + + + +
article_titlecommenttimeauthor
article_titlecommenttimeauthor
{{ Tool.highlight_matched_parts(comment.article.title, kwd) | safe }} {{ Tool.highlight_matched_parts(Tool.sensitive_words_filter(comment.body), kwd) | safe }}{{ Tool.email_display_filter(comment.author.mail) }}
+ + {% endif %} {% endblock %} From facca8c130d6f81ff2007933e12836086172412a Mon Sep 17 00:00:00 2001 From: hsy-0126 <73582197+hsy-0126@users.noreply.github.com> Date: Tue, 22 Jun 2021 11:19:39 +0800 Subject: [PATCH 02/11] Update template.html --- templates/template.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/template.html b/templates/template.html index f6b3deb..98674d8 100644 --- a/templates/template.html +++ b/templates/template.html @@ -53,7 +53,7 @@