AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
Improve site SEO metadata
yoma0d62bb1c8942
diff --git a/apps/site/src/layouts/BlogLayout.astro b/apps/site/src/layouts/BlogLayout.astroindex e6fdc4f3..56538a19 100644--- a/apps/site/src/layouts/BlogLayout.astro+++ b/apps/site/src/layouts/BlogLayout.astro@@ -4,9 +4,46 @@ import { getFormattedDate } from "@/utils/all";import Layout from "./Layout.astro";const { frontmatter } = Astro.props;+const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();+const imageUrl = new URL(frontmatter.image.src, Astro.site).toString();++const articleJsonLd = {+ "@context": "https://schema.org",+ "@type": "BlogPosting",+ headline: frontmatter.title,+ description: frontmatter.snippet,+ image: imageUrl,+ datePublished: frontmatter.publishDate.toISOString(),+ dateModified: frontmatter.publishDate.toISOString(),+ author: {+ "@type": "Organization",+ name: frontmatter.author,+ },+ publisher: {+ "@type": "Organization",+ name: "EdgeEver",+ url: new URL("/", Astro.site).toString(),+ },+ mainEntityOfPage: {+ "@type": "WebPage",+ "@id": canonicalURL,+ },+};----<Layout title={frontmatter.title}>+<Layout+ title={frontmatter.title}+ description={frontmatter.snippet}+ image={frontmatter.image.src}+ imageAlt={frontmatter.image.alt}+ openGraphType="article"+ articlePublishedTime={frontmatter.publishDate.toISOString()}+ articleModifiedTime={frontmatter.publishDate.toISOString()}+ articleAuthor={frontmatter.author}+ articleSection={frontmatter.category}+ articleTags={frontmatter.tags}+ jsonLd={articleJsonLd}+><Container><div class="mx-auto max-w-[735px] mt-14"><span class="text-blue-400 uppercase tracking-wider text-sm font-medium">diff --git a/apps/site/src/layouts/Layout.astro b/apps/site/src/layouts/Layout.astroindex 5b746f1f..6748753e 100644--- a/apps/site/src/layouts/Layout.astro+++ b/apps/site/src/layouts/Layout.astro@@ -8,16 +8,40 @@ import "../styles/global.css";export interface Props {title: string;+ description?: string;+ image?: string;+ imageAlt?: string;+ openGraphType?: "website" | "article";+ articlePublishedTime?: string;+ articleModifiedTime?: string;+ articleAuthor?: string;+ articleSection?: string;+ articleTags?: string[];+ jsonLd?: Record<string, unknown> | Record<string, unknown>[];+ noindex?: boolean;}const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();-const resolvedImageWithDomain = new URL(- "/opengraph.jpg",- Astro.site-).toString();+const defaultDescription =+ "EdgeEver 是一个开源、自托管、Cloudflare-native 的现代笔记工作区。保留经典印象笔记的三栏体验,支持富文本、无限嵌套,原生支持 MCP 对 AI Agent 极度友好,个人托管接近零成本。";-const { title } = Astro.props;+const {+ title,+ description = defaultDescription,+ image = "/opengraph.jpg",+ imageAlt = "EdgeEver 笔记应用截图",+ openGraphType = "website",+ articlePublishedTime,+ articleModifiedTime,+ articleAuthor,+ articleSection,+ articleTags,+ jsonLd,+ noindex = false,+} = Astro.props;++const resolvedImageWithDomain = new URL(image, Astro.site).toString();const makeTitle = title? title + " | " + "EdgeEver"@@ -38,25 +62,50 @@ const faviconVersion = "edgeever-brand-20260703";<!-- <link rel="preload" as="image" href={src} alt="Hero" /> --><SEOtitle={makeTitle}- description="EdgeEver 是一个开源、自托管、Cloudflare-native 的现代笔记工作区。保留经典印象笔记的三栏体验,支持富文本、无限嵌套,原生支持 MCP 对 AI Agent 极度友好,个人托管接近零成本。"+ description={description}canonical={canonicalURL}+ noindex={noindex}twitter={{creator: "@msh01",site: "@edgeever",card: "summary_large_image",+ title: makeTitle,+ description,+ image: resolvedImageWithDomain,+ imageAlt,}}openGraph={{basic: {url: canonicalURL,- type: "website",- title: `EdgeEver - 开源、自托管的 Cloudflare 印象笔记替代方案`,+ type: openGraphType,+ title: makeTitle,image: resolvedImageWithDomain,},+ optional: {+ description,+ locale: "zh_CN",+ siteName: "EdgeEver",+ },image: {- alt: "EdgeEver 笔记应用截图",+ alt: imageAlt,},+ article:+ openGraphType === "article"+ ? {+ publishedTime: articlePublishedTime,+ modifiedTime: articleModifiedTime,+ authors: articleAuthor ? [articleAuthor] : undefined,+ section: articleSection,+ tags: articleTags,+ }+ : undefined,}}/>+ {+ jsonLd && (+ <script type="application/ld+json" set:html={JSON.stringify(jsonLd)} />+ )+ }</head><body><Navbar />diff --git a/apps/site/src/pages/404.astro b/apps/site/src/pages/404.astroindex a7fd9b19..89f7fad0 100644--- a/apps/site/src/pages/404.astro+++ b/apps/site/src/pages/404.astro@@ -3,7 +3,7 @@ import Container from "@/components/container.astro";import Layout from "@/layouts/Layout.astro";----<Layout title="404 Not Found">+<Layout title="404 Not Found" noindex={true}><Container><div class="min-h-[calc(100vh-16rem)] flex items-center justify-center"><div class="mt-16 text-center">diff --git a/apps/site/src/pages/about.astro b/apps/site/src/pages/about.astroindex ea318c55..08720cfd 100644--- a/apps/site/src/pages/about.astro+++ b/apps/site/src/pages/about.astro@@ -5,7 +5,10 @@ import Sectionhead from "@/components/sectionhead.astro";import { Icon } from "astro-icon/components";----<Layout title="关于项目">+<Layout+ title="关于项目"+ description="了解 EdgeEver 的项目定位、Cloudflare-native 自托管架构、开放 API 与面向 AI Agent 的 MCP 能力。"+><Container><Sectionhead><Fragment slot="title">关于 EdgeEver</Fragment>diff --git a/apps/site/src/pages/blog.astro b/apps/site/src/pages/blog.astroindex 67dffcee..7f75b451 100644--- a/apps/site/src/pages/blog.astro+++ b/apps/site/src/pages/blog.astro@@ -7,9 +7,22 @@ import { getFormattedDate } from "@/utils/all";const entries = (await getCollection("blog", ({ data }) => !data.draft)).sort((a, b) => b.data.publishDate.getTime() - a.data.publishDate.getTime(),);++const blogUrl = new URL(Astro.url.pathname, Astro.site).toString();+const blogDescription =+ "EdgeEver 官方博客,记录 Cloudflare 自托管部署、印象笔记迁移、产品更新与 AI Agent 工作流。";++const blogJsonLd = {+ "@context": "https://schema.org",+ "@type": "CollectionPage",+ name: "EdgeEver Blog",+ url: blogUrl,+ inLanguage: "zh-CN",+ description: blogDescription,+};----<Layout title="Blog">+<Layout title="博客" description={blogDescription} jsonLd={blogJsonLd}><Container><main class="mx-auto max-w-4xl py-16 md:py-24"><div class="mb-10">diff --git a/apps/site/src/pages/contact.astro b/apps/site/src/pages/contact.astroindex 01d160a6..f63559bf 100644--- a/apps/site/src/pages/contact.astro+++ b/apps/site/src/pages/contact.astro@@ -5,7 +5,10 @@ import Layout from "@/layouts/Layout.astro";import { Icon } from "astro-icon/components";----<Layout title="联系我们">+<Layout+ title="联系我们"+ description="EdgeEver 联系与社区交流入口。Bug、功能建议和部署问题建议优先通过 GitHub Issues 沉淀。"+><Container><Sectionhead><Fragment slot="title">联系与社区交流</Fragment>diff --git a/apps/site/src/pages/index.astro b/apps/site/src/pages/index.astroindex 27293620..da128d6f 100644--- a/apps/site/src/pages/index.astro+++ b/apps/site/src/pages/index.astro@@ -4,9 +4,35 @@ import Features from "@/components/features.astro";import Hero from "@/components/hero.astro";import Logos from "@/components/logos.astro";import Layout from "@/layouts/Layout.astro";++const siteUrl = new URL(Astro.url.pathname, Astro.site).toString();++const homeJsonLd = [+ {+ "@context": "https://schema.org",+ "@type": "WebSite",+ name: "EdgeEver",+ url: siteUrl,+ inLanguage: "zh-CN",+ description:+ "EdgeEver 是一个开源、自托管、Cloudflare-native 的现代笔记工作区。",+ },+ {+ "@context": "https://schema.org",+ "@type": "SoftwareApplication",+ name: "EdgeEver",+ url: siteUrl,+ codeRepository: "https://github.com/msh01/edgeever",+ applicationCategory: "ProductivityApplication",+ operatingSystem: "Web",+ isAccessibleForFree: true,+ description:+ "EdgeEver 是一个开源、自托管、Cloudflare-native 的现代笔记工作区,保留经典印象笔记三栏体验,并提供 REST API、OpenAPI schema 和 MCP endpoint。",+ },+];----<Layout title="">+<Layout title="" jsonLd={homeJsonLd}><Container><Hero /><Features />