feat(website): add og:title and og:description via pageMeta helper

Extract a DRY pageMeta(title, description) helper that returns both
standard and OpenGraph meta tags from a single source of truth.
This commit is contained in:
Mohamed Boudra
2026-03-15 14:28:10 +07:00
parent 21c585abec
commit cda08ec033
15 changed files with 78 additions and 105 deletions
@@ -1,14 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/best-practices')({
head: () => ({
meta: [
{ title: 'Best Practices - Paseo Docs' },
{
name: 'description',
content: 'Tips for getting the most out of Paseo and mobile-first agent workflows.',
},
],
meta: pageMeta(
'Best Practices - Paseo Docs',
'Tips for getting the most out of Paseo and mobile-first agent workflows.',
),
}),
component: BestPractices,
})
+5 -7
View File
@@ -1,14 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/cli')({
head: () => ({
meta: [
{ title: 'CLI - Paseo Docs' },
{
name: 'description',
content: 'Paseo CLI reference: manage agents, daemons, permissions, and worktrees from your terminal.',
},
],
meta: pageMeta(
'CLI - Paseo Docs',
'Paseo CLI reference: manage agents, daemons, permissions, and worktrees from your terminal.',
),
}),
component: CLI,
})
@@ -1,14 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/configuration')({
head: () => ({
meta: [
{ title: 'Configuration - Paseo Docs' },
{
name: 'description',
content: 'Configure Paseo via config.json, environment variables, and CLI overrides.',
},
],
meta: pageMeta(
'Configuration - Paseo Docs',
'Configure Paseo via config.json, environment variables, and CLI overrides.',
),
}),
component: Configuration,
})
+5 -7
View File
@@ -1,14 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/')({
head: () => ({
meta: [
{ title: 'Getting Started - Paseo Docs' },
{
name: 'description',
content: 'Learn how to set up and use Paseo to manage your coding agents from anywhere.',
},
],
meta: pageMeta(
'Getting Started - Paseo Docs',
'Learn how to set up and use Paseo to manage your coding agents from anywhere.',
),
}),
component: GettingStarted,
})
@@ -1,15 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/security')({
head: () => ({
meta: [
{ title: 'Security - Paseo Docs' },
{
name: 'description',
content:
'Security model for Paseo: architecture overview, connection methods, relay encryption, and best practices.',
},
],
meta: pageMeta(
'Security - Paseo Docs',
'Security model for Paseo: architecture overview, connection methods, relay encryption, and best practices.',
),
}),
component: Security,
})
+5 -7
View File
@@ -1,14 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/updates')({
head: () => ({
meta: [
{ title: 'Updates - Paseo Docs' },
{
name: 'description',
content: 'How to update Paseo daemon and apps across web, desktop, and mobile.',
},
],
meta: pageMeta(
'Updates - Paseo Docs',
'How to update Paseo daemon and apps across web, desktop, and mobile.',
),
}),
component: UpdatesDocs,
})
+5 -7
View File
@@ -1,14 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/voice')({
head: () => ({
meta: [
{ title: 'Voice - Paseo Docs' },
{
name: 'description',
content: 'Paseo voice architecture, local-first model execution, and provider configuration.',
},
],
meta: pageMeta(
'Voice - Paseo Docs',
'Paseo voice architecture, local-first model execution, and provider configuration.',
),
}),
component: VoiceDocs,
})
@@ -1,14 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
import { pageMeta } from '~/meta'
export const Route = createFileRoute('/docs/worktrees')({
head: () => ({
meta: [
{ title: 'Git Worktrees - Paseo Docs' },
{
name: 'description',
content: 'Run agents in isolated git worktrees for parallel feature development.',
},
],
meta: pageMeta(
'Git Worktrees - Paseo Docs',
'Run agents in isolated git worktrees for parallel feature development.',
),
}),
component: Worktrees,
})