diff --git a/convex/http.ts b/convex/http.ts index 9497ec9..7355d38 100644 --- a/convex/http.ts +++ b/convex/http.ts @@ -6,7 +6,7 @@ import { rssFeed, rssFullFeed } from "./rss"; const http = httpRouter(); // Site configuration -const SITE_URL = process.env.SITE_URL || "https://markdowncms.netlify.app"; +const SITE_URL = process.env.SITE_URL || "https://markdown.fast"; const SITE_NAME = "markdown sync framework"; // RSS feed endpoint (descriptions only) @@ -72,7 +72,8 @@ http.route({ const response = { site: SITE_NAME, url: SITE_URL, - description: "An open-source publishing framework for AI agents and developers. Write markdown, sync from the terminal. Your content is instantly available to browsers, LLMs, and AI agents. Built on Convex and Netlify.", + description: + "An open-source publishing framework for AI agents and developers. Write markdown, sync from the terminal. Your content is instantly available to browsers, LLMs, and AI agents. Built on Convex and Netlify.", posts: posts.map((post) => ({ title: post.title, slug: post.slug, @@ -194,7 +195,8 @@ http.route({ const response = { site: SITE_NAME, url: SITE_URL, - description: "An open-source publishing framework for AI agents and developers. Write markdown, sync from the terminal. Your content is instantly available to browsers, LLMs, and AI agents. Built on Convex and Netlify.", + description: + "An open-source publishing framework for AI agents and developers. Write markdown, sync from the terminal. Your content is instantly available to browsers, LLMs, and AI agents. Built on Convex and Netlify.", exportedAt: new Date().toISOString(), totalPosts: fullPosts.length, posts: fullPosts, @@ -230,7 +232,7 @@ function generateMetaHtml(content: { image?: string; type?: "post" | "page"; }): string { - const siteUrl = process.env.SITE_URL || "https://markdowncms.netlify.app"; + const siteUrl = process.env.SITE_URL || "https://markdown.fast"; const siteName = "markdown sync framework"; const defaultImage = `${siteUrl}/images/og-default.svg`; const canonicalUrl = `${siteUrl}/${content.slug}`; @@ -266,8 +268,12 @@ function generateMetaHtml(content: { - ${content.date ? ` - ` : ""} + ${ + content.date + ? ` + ` + : "" + } @@ -284,8 +290,12 @@ function generateMetaHtml(content: {
${safeDescription}
${content.date ? ` -${content.date}${content.readTime ? ` · ${content.readTime}` : ""}
` : ""} +${safeDescription}
${ + content.date + ? ` +${content.date}${content.readTime ? ` · ${content.readTime}` : ""}
` + : "" + }Redirecting to full ${contentType}...