- {{ post.content | strip_html | truncate: 200 }} + {{ post.content | strip_html | truncate: 200 | replace: '&', '&' }}
From 77a47c4b620044f44601c36e87dc760fe6b0334d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 23 Dec 2019 00:55:51 +0800 Subject: [PATCH] Fixed some HTML tags. --- _includes/panel.html | 2 +- _includes/related-posts.html | 2 +- _includes/sidebar.html | 2 +- _layouts/home.html | 2 +- _layouts/post.html | 4 ++-- assets/img/commons/loading.png | Bin 0 -> 99 bytes 6 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 assets/img/commons/loading.png diff --git a/_includes/panel.html b/_includes/panel.html index 6788a25..d3b8737 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -21,7 +21,7 @@ {% endfor %} {% if lastmod_list.size > 0 %} -
{{ post.content | markdownify | strip_html | truncate: 200 }}
+{{ post.content | markdownify | strip_html | truncate: 200 | replace: '&', '&' }}
- {{ post.content | strip_html | truncate: 200 }} + {{ post.content | strip_html | truncate: 200 | replace: '&', '&' }}