X Enterprises
nuxt-x-schema

Article

Schema.org Article JSON-LD component for blog posts, news articles, and tech content.

Article

The XSchemaArticle component injects a <script type="application/ld+json"> tag into the page <head> for article-type structured data. No visible output — SEO only.

Components

<XSchemaArticle />

Use on any page that publishes written content: blog posts, news articles, technical write-ups. The articleType prop selects the Schema.org subtype.

<XSchemaArticle
  headline="My Blog Post"
  date-published="2024-01-15"
  author="Jane Doe"
/>

Props

PropTypeRequiredDefaultDescription
headlineStringYesArticle headline
descriptionStringNonullShort article description
imageString | ArrayNonullImage URL(s)
datePublishedStringYesISO 8601 publish date
dateModifiedStringNonullISO 8601 modified date
authorString | Object | ArrayYesAuthor name, Person object, or array
publisherObjectNonullPublisher Organization object
articleTypeStringNo"BlogPosting"Schema type: Article, BlogPosting, NewsArticle, TechArticle
urlStringNonullCanonical URL
wordCountNumberNonullApproximate word count

AI Context

component: XSchemaArticle
package: "@xenterprises/nuxt-x-schema"
output: JSON-LD script tag in <head>
use-when: Adding Article / BlogPosting / NewsArticle / TechArticle structured data for rich Google results
place: In page-level components (pages/ or layouts/), NOT in shared headers
notes:
  - Renderless component — no visible DOM output; purely SEO metadata
  - Injects JSON-LD server-side via useHead — SSR-safe, visible to crawlers on first paint
  - articleType selects the Schema.org subtype
Copyright © 2026