Skip to content

Commit c1e3c5f

Browse files
fix(preset-jekyll): remove incorrect use of excerpt property
1 parent d9743a7 commit c1e3c5f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/preset-jekyll/lib/post-template.js

-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const getFrontMatter = (properties) => {
3737
properties = {
3838
date: properties.published,
3939
...(properties.name && { title: properties.name }),
40-
...(properties.summary && { excerpt: properties.summary }),
4140
...properties,
4241
};
4342

@@ -55,7 +54,6 @@ const getFrontMatter = (properties) => {
5554
delete properties.name; // Use `title`
5655
delete properties.post_status; // Use `published`
5756
delete properties.slug; // File path dictates slug
58-
delete properties.summary; // Use `excerpt`
5957
delete properties.type; // Not required
6058
delete properties.url; // Not required
6159

packages/preset-jekyll/test/unit/post-template.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ title: Lunchtime
7777
`---
7878
date: 2020-02-02
7979
title: What I had for lunch
80-
excerpt: A very satisfactory meal.
80+
summary: A very satisfactory meal.
8181
category:
8282
- lunch
8383
- food

0 commit comments

Comments
 (0)