Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
解决嵌入视频或音频后首页无法正确加载的问题。
  • Loading branch information
spaceroam authored Nov 2, 2020
1 parent dc2ed49 commit e041851
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ <h1>
</script>
</div>

<div class="entry">
{{ post.excerpt | truncate: 200 }}
<div class="post-excerpt">
{% if post.content contains site.excerpt_separator or post.content != post.excerpt %}{{ post.excerpt }}
{% else %}{{ post.content | lstrip | split: "
" | first }}{% endif %}
<p>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">Read More</a>
</p>
</div>

<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
</article>

{% endif %}
{% endfor %}

Expand Down Expand Up @@ -77,12 +80,15 @@ <h1>
</ul>
</div>

<div class="entry">
{{ post.excerpt | truncate: 200 }}
</div>

<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
</article>
<div class="post-excerpt">
{% if post.content contains site.excerpt_separator or post.content != post.excerpt %}{{ post.excerpt }}
{% else %}{{ post.content | lstrip | split: "
" | first }}{% endif %}
<p>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">Read More</a>
</p>
</div>

{% endunless %}
{% endfor %}
</div>
Expand Down

0 comments on commit e041851

Please sign in to comment.