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

Code improvement.

Passing parameters to includes
This commit is contained in:
Cotes Chung
2020-07-22 21:41:49 +08:00
parent 562fcd4fd8
commit 209058b84a
7 changed files with 28 additions and 24 deletions

View File

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