Skip to content

Commit

Permalink
fix(preset-jekyll): remove incorrect use of excerpt property
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 16, 2024
1 parent d9743a7 commit c1e3c5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/preset-jekyll/lib/post-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const getFrontMatter = (properties) => {
properties = {
date: properties.published,
...(properties.name && { title: properties.name }),
...(properties.summary && { excerpt: properties.summary }),
...properties,
};

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

Expand Down
2 changes: 1 addition & 1 deletion packages/preset-jekyll/test/unit/post-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ title: Lunchtime
`---
date: 2020-02-02
title: What I had for lunch
excerpt: A very satisfactory meal.
summary: A very satisfactory meal.
category:
- lunch
- food
Expand Down

0 comments on commit c1e3c5f

Please sign in to comment.