Skip to content

Commit e120861

Browse files
committed
Fix excerpt in list
1 parent f0feaba commit e120861

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

categories.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ <h2>{{category.category}}</h2>
2222
<a href="{{ site.baseurl }}{{ post.url }}" class="posts-grid__link">
2323
<h3 class="posts-grid__item-title">{{ post.data.title }}</h3>
2424
</a>
25-
<p class="posts-grid__summary">{{ post.content| excerpt }}</p>
25+
<p class="posts-grid__summary">
26+
{{ post.data.excerpt | default: post.content | excerpt }}
27+
</p>
2628
<div class="posts-grid__meta">
2729
<time datetime="{{ post.date | date_to_xmlschema }}"
2830
>{{ post.date | date_to_long_string_locale }}</time

writings.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ <h2>{{ yearitem.name }}</h2>
2020
<a href="{{ site.baseurl }}{{ item.url }}" class="posts-grid__link">
2121
<h3 class="posts-grid__item-title">{{ item.data.title }}</h3>
2222
</a>
23-
<p class="posts-grid__summary">{{ item.content| excerpt }}</p>
23+
<p class="posts-grid__summary">
24+
{{ item.data.excerpt | default: item.content | excerpt }}
25+
</p>
2426
<div class="posts-grid__meta">
2527
<time datetime="{{ item.date | date_to_xmlschema }}"
2628
>{{ item.date | date_to_long_string_locale }}</time

0 commit comments

Comments
 (0)