Skip to content

Commit

Permalink
Merge pull request #29 from spaceroam/patch-1
Browse files Browse the repository at this point in the history
感谢!
  • Loading branch information
FromEndWorld authored Nov 9, 2020
2 parents dc2ed49 + e041851 commit c8e3331
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 c8e3331

Please sign in to comment.