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
feat: unify all guides into blog tag system, implement tag filter, and delete redundant Astro pages
yomac85d2cc21962
diff --git a/apps/site/src/components/hero.astro b/apps/site/src/components/hero.astroindex 35368641..5e7c159b 100644--- a/apps/site/src/components/hero.astro+++ b/apps/site/src/components/hero.astro@@ -20,13 +20,19 @@ const copy = siteCopy[locale].hero;<div class="md:order-1 relative z-10 w-full">{copy.badgeText && (- <div class="inline-flex items-center gap-2 px-3.5 py-1 mb-6 text-xs text-brand bg-brand/5 border border-brand-border/30 rounded-full backdrop-blur-sm select-none hover:-translate-y-0.5 transition-all duration-300">+ <a+ href={`${getLocalizedPath(locale, "/")}blog?tag=migration`}+ class="inline-flex items-center gap-2 px-3.5 py-1 mb-6 text-xs text-brand bg-brand/5 border border-brand-border/30 hover:border-brand/40 hover:bg-brand/10 rounded-full backdrop-blur-sm select-none hover:-translate-y-0.5 transition-all duration-300 group/badge cursor-pointer"+ ><span class="relative flex h-2 w-2"><span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-brand opacity-75"></span><span class="relative inline-flex rounded-full h-2 w-2 bg-brand"></span></span>- <span class="text-slate-600 font-medium">{copy.badgeText}</span>- </div>+ <span class="text-slate-600 font-medium group-hover/badge:text-brand transition-colors">{copy.badgeText}</span>+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="w-3 h-3 text-slate-400 group-hover/badge:text-brand transition-all duration-300 transform group-hover/badge:translate-x-0.5">+ <path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" />+ </svg>+ </a>)}<h1 class="text-4xl md:text-5xl xl:text-6xl font-bold text-slate-900 leading-tight"><span class="text-gradient">EdgeEver</span>diff --git a/apps/site/src/components/navbar/navbar.astro b/apps/site/src/components/navbar/navbar.astroindex 5d720463..657050d0 100644--- a/apps/site/src/components/navbar/navbar.astro+++ b/apps/site/src/components/navbar/navbar.astro@@ -22,15 +22,15 @@ const menuitems = [children: [{title: copy.evernoteMigration,- path: getLocalizedPath(locale, "/guides/evernote-migration"),+ path: getLocalizedPath(locale, "/blog/evernote-migration-guide"),},{title: copy.memosMigration,- path: getLocalizedPath(locale, "/guides/memos-migration"),+ path: getLocalizedPath(locale, "/blog/memos-migration-guide"),},{title: copy.notionMigration,- path: getLocalizedPath(locale, "/guides/notion-migration"),+ path: getLocalizedPath(locale, "/blog/notion-migration-guide"),},{title: copy.advancedPlay,diff --git a/apps/site/src/pages/blog.astro b/apps/site/src/pages/blog.astroindex 7f75b451..b27e6030 100644--- a/apps/site/src/pages/blog.astro+++ b/apps/site/src/pages/blog.astro@@ -4,7 +4,15 @@ import Container from "@/components/container.astro";import Layout from "@/layouts/Layout.astro";import { getFormattedDate } from "@/utils/all";-const entries = (await getCollection("blog", ({ data }) => !data.draft)).sort(+const selectedTag = Astro.url.searchParams.get("tag");++const entries = (await getCollection("blog", ({ data }) => {+ const isNotDraft = !data.draft;+ if (selectedTag) {+ return isNotDraft && data.tags && data.tags.includes(selectedTag);+ }+ return isNotDraft;+})).sort((a, b) => b.data.publishDate.getTime() - a.data.publishDate.getTime(),);diff --git a/apps/site/src/pages/en/blog.astro b/apps/site/src/pages/en/blog.astroindex ca07fab3..1c642862 100644--- a/apps/site/src/pages/en/blog.astro+++ b/apps/site/src/pages/en/blog.astro@@ -4,7 +4,15 @@ import Layout from "@/layouts/Layout.astro";import Container from "@/components/container.astro";import { getFormattedDate } from "@/utils/all";-const entries = (await getCollection("blog_en", ({ data }) => !data.draft)).sort(+const selectedTag = Astro.url.searchParams.get("tag");++const entries = (await getCollection("blog_en", ({ data }) => {+ const isNotDraft = !data.draft;+ if (selectedTag) {+ return isNotDraft && data.tags && data.tags.includes(selectedTag);+ }+ return isNotDraft;+})).sort((a, b) => b.data.publishDate.getTime() - a.data.publishDate.getTime(),);diff --git a/apps/site/src/pages/en/guides/evernote-migration.astro b/apps/site/src/pages/en/guides/evernote-migration.astrodeleted file mode 100644index d2f03bdf..00000000--- a/apps/site/src/pages/en/guides/evernote-migration.astro+++ /dev/null@@ -1,21 +0,0 @@-----import { getEntry, render } from "astro:content";-import BlogLayout from "@/layouts/BlogLayout.astro";--const entry = await getEntry("blog_en", "evernote-migration-guide");--if (!entry) {- throw new Error("Missing English evernote-migration-guide blog entry");-}--const { Content } = await render(entry);------<BlogLayout- frontmatter={entry.data}- backHref="/en/"- backLabel="Back to home"- schemaType="Article"->- <Content />-</BlogLayout>diff --git a/apps/site/src/pages/en/guides/memos-migration.astro b/apps/site/src/pages/en/guides/memos-migration.astrodeleted file mode 100644index e7411e49..00000000--- a/apps/site/src/pages/en/guides/memos-migration.astro+++ /dev/null@@ -1,21 +0,0 @@-----import { getEntry, render } from "astro:content";-import BlogLayout from "@/layouts/BlogLayout.astro";--const entry = await getEntry("blog_en", "memos-migration-guide");--if (!entry) {- throw new Error("Missing English memos-migration-guide blog entry");-}--const { Content } = await render(entry);------<BlogLayout- frontmatter={entry.data}- backHref="/en/"- backLabel="Back to home"- schemaType="Article"->- <Content />-</BlogLayout>diff --git a/apps/site/src/pages/en/guides/notion-migration.astro b/apps/site/src/pages/en/guides/notion-migration.astrodeleted file mode 100644index 427ccda0..00000000--- a/apps/site/src/pages/en/guides/notion-migration.astro+++ /dev/null@@ -1,21 +0,0 @@-----import { getEntry, render } from "astro:content";-import BlogLayout from "@/layouts/BlogLayout.astro";--const entry = await getEntry("blog_en", "notion-migration-guide");--if (!entry) {- throw new Error("Missing English notion-migration-guide blog entry");-}--const { Content } = await render(entry);------<BlogLayout- frontmatter={entry.data}- backHref="/en/"- backLabel="Back to home"- schemaType="Article"->- <Content />-</BlogLayout>diff --git a/apps/site/src/pages/guides/evernote-migration.astro b/apps/site/src/pages/guides/evernote-migration.astrodeleted file mode 100644index c0df6075..00000000--- a/apps/site/src/pages/guides/evernote-migration.astro+++ /dev/null@@ -1,21 +0,0 @@-----import { getEntry, render } from "astro:content";-import BlogLayout from "@/layouts/BlogLayout.astro";--const entry = await getEntry("blog", "evernote-migration-guide");--if (!entry) {- throw new Error("Missing evernote-migration-guide blog entry");-}--const { Content } = await render(entry);------<BlogLayout- frontmatter={entry.data}- backHref="/"- backLabel="返回首页"- schemaType="Article"->- <Content />-</BlogLayout>diff --git a/apps/site/src/pages/guides/memos-migration.astro b/apps/site/src/pages/guides/memos-migration.astrodeleted file mode 100644index a7e651fc..00000000--- a/apps/site/src/pages/guides/memos-migration.astro+++ /dev/null@@ -1,21 +0,0 @@-----import { getEntry, render } from "astro:content";-import BlogLayout from "@/layouts/BlogLayout.astro";--const entry = await getEntry("blog", "memos-migration-guide");--if (!entry) {- throw new Error("Missing memos-migration-guide blog entry");-}--const { Content } = await render(entry);------<BlogLayout- frontmatter={entry.data}- backHref="/"- backLabel="返回首页"- schemaType="Article"->- <Content />-</BlogLayout>diff --git a/apps/site/src/pages/guides/notion-migration.astro b/apps/site/src/pages/guides/notion-migration.astrodeleted file mode 100644index 440c6f4d..00000000--- a/apps/site/src/pages/guides/notion-migration.astro+++ /dev/null@@ -1,21 +0,0 @@-----import { getEntry, render } from "astro:content";-import BlogLayout from "@/layouts/BlogLayout.astro";--const entry = await getEntry("blog", "notion-migration-guide");--if (!entry) {- throw new Error("Missing notion-migration-guide blog entry");-}--const { Content } = await render(entry);------<BlogLayout- frontmatter={entry.data}- backHref="/"- backLabel="返回首页"- schemaType="Article"->- <Content />-</BlogLayout>