Restaurant Articles
Restaurant Articles
The /restaurants/:slug/articles child page lists editorial articles from the articles Nuxt Content collection, sorted by meta.date (most recent first). It does not filter articles by the restaurant slug — it shows all articles in the collection.
Route
/restaurants/:slug/articles
Components Used
Article cards are rendered inline using NuxtLink, NuxtImg/img, and UIcon. No XRD-prefixed component is specific to this child page; the page reuses marketing-layer card primitives.
Data Fetching
Articles are fetched via queryCollection("articles").all() wrapped in useAsyncData (key restaurant-articles-${slug}), then sorted by date descending client-side. The page also injects the restaurant ref from the parent layout for the heading.
This is an independent content query — data is not shared with the parent layout's restaurant fetch.
AI Context
route: /restaurants/:slug/articles
package: "@xenterprises/nuxt-x-restaurants"
use-when: >
Rendering the articles tab on a restaurant profile. Content is sourced
from the Nuxt Content articles collection (all articles, not filtered
by restaurant slug), sorted by date descending.
