Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(v2): simplify blog truncate function #1968

Merged
merged 2 commits into from
Nov 12, 2019
Merged

Conversation

endiliey
Copy link
Contributor

@endiliey endiliey commented Nov 12, 2019

Motivation

Simplify blog truncate function. This should be faster because we're passing limit to split function and less code to execute lol

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

Edit blog file

With truncate marker, read more still showed
read more

Without truncate marker, show all
remove truncate marker

@endiliey endiliey added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Nov 12, 2019
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 12, 2019
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Nov 12, 2019

Deploy preview for docusaurus-2 ready!

Built with commit 1cb4939

https://deploy-preview-1968--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Nov 12, 2019

Deploy preview for docusaurus-preview ready!

Built with commit 1cb4939

https://deploy-preview-1968--docusaurus-preview.netlify.com

@endiliey endiliey merged commit 874b063 into master Nov 12, 2019
@endiliey endiliey deleted the endi/truncate branch November 12, 2019 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants