Skip to content

feat: implement Roadiz meta composable - #611

Merged
manuelodelain merged 6 commits into
mainfrom
feat/roadiz-meta
Jul 10, 2026
Merged

feat: implement Roadiz meta composable#611
manuelodelain merged 6 commits into
mainfrom
feat/roadiz-meta

Conversation

@manuelodelain

Copy link
Copy Markdown
Member

useRoadizMeta()

A composable dedicated to Roadiz meta data.
The previous useRoadizSeoMeta() has been removed.

usePageMeta()

An agnostic composable to handle meta data.
It will be used with useHead() to update the meta data.

Structured data

Adds the default structured data for a website and a webpage.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new meta-data pipeline by replacing the Roadiz-specific SEO composable with a CMS-agnostic usePageMeta() and a Roadiz adapter useRoadizMeta(), while also adding default Schema.org structured data.

Changes:

  • Add useRoadizMeta() + usePageMeta() and wire them into the dynamic slug page.
  • Add utilities for truncation and markdown-to-plain-text conversion to support meta/structured-data text.
  • Add Schema.org module integration and introduce a dedicated search page component.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
types/roadiz.d.ts Adds NSSearchPage type alias for Roadiz nodes sources.
nuxt.config.ts Registers nuxt-schema-org module.
app/utils/string/truncate.ts Adds string truncation helper used for meta descriptions.
app/utils/roadiz/entity.ts Adds isSearchPageEntity() helper.
app/utils/markdown/markdown-to-plain-text.ts Adds markdown→HTML→plain-text conversion for meta/structured data.
app/pages/[...slug].vue Switches meta handling to new composables; adds Schema.org WebPage and SearchResultsPage handling and renders search page component.
app/layouts/default.vue Removes title templating and adds Schema.org WebSite definition.
app/composables/use-roadiz-seo-meta.ts Removes legacy Roadiz SEO meta composable.
app/composables/use-roadiz-meta.ts Adds new Roadiz-specific meta resolver (title/desc/image/noindex/canonical/alternate).
app/composables/use-page-meta.ts Adds CMS-agnostic head/meta builder for use with useHead().
app/components/VPageSearch.vue Adds search page component rendering blocks and a heading.
app/components/VPageDefault.vue Updates default page heading fallback text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/composables/use-page-meta.ts
Comment thread app/composables/use-roadiz-meta.ts
Comment thread app/utils/markdown/markdown-to-plain-text.ts Outdated
timothejoubert
timothejoubert previously approved these changes Jul 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 16 changed files in this pull request and generated 3 comments.

Comment thread app/error.vue Outdated
Comment thread app/composables/use-roadiz-meta.ts
Comment thread app/composables/use-page-title.ts
manuelodelain and others added 3 commits July 10, 2026 09:41
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 16 changed files in this pull request and generated 3 comments.

Comment thread app/composables/use-roadiz-meta.ts
Comment thread app/utils/markdown/markdown-to-plain-text.ts
Comment thread app/composables/use-roadiz-meta.ts
@manuelodelain
manuelodelain merged commit 178bc3c into main Jul 10, 2026
3 checks passed
@manuelodelain
manuelodelain deleted the feat/roadiz-meta branch July 10, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants