From e0418518c0c4ff371ffc00ce8b19729bfa319b7c Mon Sep 17 00:00:00 2001 From: spaceroam <69491108+spaceroam@users.noreply.github.com> Date: Mon, 2 Nov 2020 04:34:54 -0500 Subject: [PATCH] Update index.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决嵌入视频或音频后首页无法正确加载的问题。 --- index.html | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index 117ab7a80..2564ad54f 100644 --- a/index.html +++ b/index.html @@ -40,12 +40,15 @@

-
- {{ post.excerpt | truncate: 200 }} +
+ {% if post.content contains site.excerpt_separator or post.content != post.excerpt %}{{ post.excerpt }} + {% else %}{{ post.content | lstrip | split: " +" | first }}{% endif %} +

+ Read More +

- - Read More - + {% endif %} {% endfor %} @@ -77,12 +80,15 @@

-
- {{ post.excerpt | truncate: 200 }} -
- - Read More - +
+ {% if post.content contains site.excerpt_separator or post.content != post.excerpt %}{{ post.excerpt }} + {% else %}{{ post.content | lstrip | split: " +" | first }}{% endif %} +

+ Read More +

+
+ {% endunless %} {% endfor %}