Add SEO: OG tags, Twitter Card, hreflang, JSON-LD, sitemap
- config.ts: og:site_name, og:image (+w/h/alt), twitter:card/site/image
- config.ts: transformPageData — per-page canonical, og:url, og:locale,
og:locale:alternate, hreflang for all 6 locales + x-default,
og:title/description and twitter:title/description from frontmatter
- config.ts: sitemap with xhtml:link alternates for all 174 pages × 6 locales
- SchemaOrg.vue: SoftwareApplication JSON-LD on EN homepage only
- HomeLayout.vue: render SchemaOrg in home-features-after slot
- index.md + de/fr/es/it/pl index.md: add translated title to frontmatter
2026-03-07 16:49:24 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { useData } from 'vitepress'
|
|
|
|
|
|
|
|
|
|
const { page } = useData()
|
|
|
|
|
|
|
|
|
|
const isEnHome = page.value.relativePath === 'index.md'
|
|
|
|
|
|
|
|
|
|
const schema = JSON.stringify({
|
|
|
|
|
'@context': 'https://schema.org',
|
|
|
|
|
'@type': 'SoftwareApplication',
|
|
|
|
|
name: 'OpenPencil',
|
|
|
|
|
applicationCategory: 'DesignApplication',
|
|
|
|
|
operatingSystem: 'Windows, macOS, Linux, Web',
|
|
|
|
|
offers: {
|
|
|
|
|
'@type': 'Offer',
|
|
|
|
|
price: '0',
|
|
|
|
|
priceCurrency: 'USD',
|
|
|
|
|
},
|
|
|
|
|
url: 'https://app.openpencil.dev',
|
|
|
|
|
description:
|
|
|
|
|
'Open-source, AI-native design editor. Figma-compatible with full .fig file support.',
|
2026-03-07 21:20:47 +00:00
|
|
|
softwareVersion: '0.8.0',
|
Add SEO: OG tags, Twitter Card, hreflang, JSON-LD, sitemap
- config.ts: og:site_name, og:image (+w/h/alt), twitter:card/site/image
- config.ts: transformPageData — per-page canonical, og:url, og:locale,
og:locale:alternate, hreflang for all 6 locales + x-default,
og:title/description and twitter:title/description from frontmatter
- config.ts: sitemap with xhtml:link alternates for all 174 pages × 6 locales
- SchemaOrg.vue: SoftwareApplication JSON-LD on EN homepage only
- HomeLayout.vue: render SchemaOrg in home-features-after slot
- index.md + de/fr/es/it/pl index.md: add translated title to frontmatter
2026-03-07 16:49:24 +00:00
|
|
|
license: 'https://opensource.org/licenses/MIT',
|
|
|
|
|
screenshot: 'https://openpencil.dev/screenshot.png',
|
|
|
|
|
downloadUrl: 'https://github.com/open-pencil/open-pencil/releases/latest',
|
|
|
|
|
featureList: [
|
|
|
|
|
'Open .fig files natively',
|
|
|
|
|
'AI chat with 78 design tools',
|
|
|
|
|
'MCP server for AI coding tools',
|
|
|
|
|
'P2P real-time collaboration',
|
|
|
|
|
'Headless CLI for automation',
|
|
|
|
|
'Desktop app via Tauri',
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<component :is="'script'" v-if="isEnHome" type="application/ld+json">{{ schema }}</component>
|
|
|
|
|
</template>
|