X Enterprises

Configuration

app.config.ts and runtimeConfig reference for @xenterprises/nuxt-x-blog.

Configuration

app.config.ts

Overrides live in the consumer's app/app.config.ts (it must be in the app/ directory — a root-level app.config.ts is silently ignored by layer merging):

// app/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,
    pages: {
      home: true,
      list: true,
      post: true,
    },
  },
})

Schema Reference

KeyTypeDefaultDescription
titlestring'Blog'Blog section title shown on the listing page.
descriptionstring'Latest articles and updates'Blog section description shown on the listing page.
postsPerPagenumber9Number of posts per page for pagination.
dateFormatstring'MMM d, yyyy'Display date format. Note: currently reserved — the shipped useBlog().formatDate() renders a fixed localized short date (toLocaleDateString('en-US')) and does not read this key yet.
showAuthorbooleantrueShow author name on post cards and individual post pages.
showReadingTimebooleantrueShow estimated reading time on post cards and pages.
showTagsbooleantrueShow tag badges on post cards and pages.
showTableOfContentsbooleantrueShow XBLTableOfContents on individual post pages.
showShareButtonsbooleantrueShow XBLShareButtons on individual post pages.
pages.homebooleantrueEnable the //blog 301 redirect. Set false to disable (route returns 404).
pages.listbooleantrueEnable the /blog listing page. Set false to disable (route returns 404).
pages.postbooleantrueEnable the /blog/[...slug] post detail page. Set false to disable (route returns 404).

Runtime Config / Environment Variables

None required. All configuration is through app/app.config.ts.


AI Context

package: "@xenterprises/nuxt-x-blog"
config-key: xBlog
Copyright © 2026