Replies: 1 comment
-
|
Use the built-in excerpt feature and read it from the document’s description field (it’s plain text). When your Markdown contains , Nuxt Content will fill description with the excerpt; otherwise it falls back to the first paragraph. How to set it up:
export default defineContentConfig({
title: BillingShort summary for meta. The rest of the article continues here… With this divider present, doc.description will contain the excerpt text.
By default (no ), description is the first of the page, which is also injected into metas. Need the HTML excerpt instead? Render it with: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm trying to use the excerpt as the page description instead of the default
Beta Was this translation helpful? Give feedback.
All reactions