Configuration
app.config.ts and runtimeConfig reference for @xenterprises/nuxt-x-blog.
Configuration
app.config.ts
export default defineAppConfig({
xBlog: {
title: 'Blog',
description: 'Latest articles and updates',
postsPerPage: 9,
dateFormat: 'MMM d, yyyy',
showAuthor: true,
showReadingTime: true,
showTags: true,
showTableOfContents: true,
showShareButtons: true,
},
})
Schema Reference
| Key | Type | Default | Description |
|---|---|---|---|
title | string | 'Blog' | Blog section title shown on the listing page. |
description | string | 'Latest articles and updates' | Blog section description shown on the listing page. |
postsPerPage | number | 9 | Number of posts per page for pagination. |
dateFormat | string | 'MMM d, yyyy' | Display date format used by useBlog().formatDate(). |
showAuthor | boolean | true | Show author name on post cards and individual post pages. |
showReadingTime | boolean | true | Show estimated reading time on post cards and pages. |
showTags | boolean | true | Show tag badges on post cards and pages. |
showTableOfContents | boolean | true | Show XBLTableOfContents on individual post pages. |
showShareButtons | boolean | true | Show XBLShareButtons on individual post pages. |
Runtime Config / Environment Variables
None required. All configuration is through app.config.ts.
AI Context
package: "@xenterprises/nuxt-x-blog"
config-key: xBlog
useBlog
Blog data access composable backed by queryCollection('blog') — fetch posts, tags, related posts, and paginated listings from Nuxt Content v3.
nuxt-x-affiliate
Nuxt 4 layer for affiliate/referral program pages, tracking, and dashboard components — signup forms, referral link tracking, commission tiers, and a full affiliate dashboard built on Nuxt UI v4.
