Skip to content

Commit

Permalink
Merge pull request #8 from auroral-ui/beta
Browse files Browse the repository at this point in the history
feat: changed default post abstract length to 80
  • Loading branch information
bennyxguo authored Aug 11, 2023
2 parents 38cb7b0 + b2575b0 commit 83a0107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const {
*/
function postMapper(post, configs) {
const abstract = post.abstracts || post.content;
const abstractLength = post.abstracts ? post.abstracts.length : post.preview || 140;
const abstractLength = post.abstracts ? post.abstracts.length : post.preview || 80;
return {
title: post.title,
uid: generateUid('post_uid___' + post.title),
Expand Down

0 comments on commit 83a0107

Please sign in to comment.