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

feat(lib): support markdown excerpt #607

Merged
merged 1 commit into from
Nov 2, 2020
Merged

feat(lib): support markdown excerpt #607

merged 1 commit into from
Nov 2, 2020

Conversation

kylewelsby
Copy link
Contributor

@kylewelsby kylewelsby commented Oct 28, 2020

Support Markdown excerpt.

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)

Description

Feature Documentation

Content excerpt or summary can be extracted from the content using <!--more--> as a divider.

---
title: Introduction
---

Learn how to use @nuxt/content.
<!--more-->
Full amount of content beyond the more divider.

Description property will contain the excerpt content unless defined within the Front Matter props.

Why?

To coincide with excerpt feature equivalent to Jekyll and Hugo

Redo of #250 #68

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@kylewelsby kylewelsby mentioned this pull request Oct 30, 2020
6 tasks
@benjamincanac
Copy link
Member

Hey @kylewelsby,

Looks good to me, let me run some tests and it will be good to merge 🙂

@benjamincanac benjamincanac merged commit b453ea8 into nuxt:dev Nov 2, 2020
@kylewelsby
Copy link
Contributor Author

Amazing. Thanks for accepting 🙂

@atinux atinux mentioned this pull request Nov 19, 2020
3 tasks
@kylewelsby kylewelsby deleted the feat/markdown-excerpt-description branch November 23, 2020 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants