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 %} -
+

{{- site.data.label.panel.lastmod -}}

diff --git a/_includes/related-posts.html b/_includes/related-posts.html index d13be8f..175e122 100644 --- a/_includes/related-posts.html +++ b/_includes/related-posts.html @@ -56,7 +56,7 @@

{{ post.title }}

-

{{ post.content | markdownify | strip_html | truncate: 200 }}

+

{{ post.content | markdownify | strip_html | truncate: 200 | replace: '&', '&' }}

diff --git a/_includes/sidebar.html b/_includes/sidebar.html index b9ceaa1..eb52b06 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -12,7 +12,7 @@ {% if avatar | slice: 0 == '/' %} {% assign avatar = avatar | prepend: site.baseurl %} {% endif %} - +
diff --git a/_layouts/home.html b/_layouts/home.html index 7851104..0edfe9f 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -15,7 +15,7 @@ layout: page

- {{ post.content | strip_html | truncate: 200 }} + {{ post.content | strip_html | truncate: 200 | replace: '&', '&' }}

diff --git a/_layouts/post.html b/_layouts/post.html index db8d372..8e4c852 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -48,7 +48,7 @@ layout: default {% capture post_content %}
{% if page.image %} - + {% endif %} {{ content }}
@@ -56,7 +56,7 @@ layout: default {% if post_content contains '