1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Remove line number from post snippet (#51).

Involves:
- Home page
- relate posts
- search results
- feed
This commit is contained in:
Cotes Chung
2020-05-06 00:39:28 +08:00
parent 3f843f010a
commit ac9dc4d9ac
5 changed files with 25 additions and 4 deletions

View File

@@ -58,7 +58,9 @@
</span>
<h3 class="pt-0 mt-1 mb-3" data-toc-skip>{{ post.title }}</h3>
<div class="text-muted small">
<p>{{ post.content | markdownify | strip_html | truncate: 200 | replace: '&', '&amp;' }}</p>
{% assign content = post.content %}
{% include no-linenos.html %}
<p>{{ content | markdownify | strip_html | truncate: 200 | replace: '&', '&amp;' }}</p>
</div>
</div>
</a>