updates: site url to markdown.fast, png og image and site name

This commit is contained in:
Wayne Sutton
2025-12-21 22:24:12 -08:00
parent 5a7824b2b8
commit d623aed598
9 changed files with 46 additions and 33 deletions

View File

@@ -107,15 +107,15 @@ export const siteConfig: SiteConfig = {
},
{
src: "/images/logos/markdown.svg",
href: "https://markdowncms.netlify.app/docs",
href: "https://markdown.fast/docs",
},
{
src: "/images/logos/react.svg",
href: "https://markdowncms.netlify.app/setup-guide",
href: "https://markdown.fast/setup-guide",
},
{
src: "/images/logos/sample-logo-5.svg",
href: "https://markdowncms.netlify.app/setup-guide",
href: "https://markdown.fast/setup-guide",
},
],
position: "above-footer",

View File

@@ -8,7 +8,7 @@ import { ArrowLeft, Link as LinkIcon, Twitter, Rss } from "lucide-react";
import { useState, useEffect } from "react";
// Site configuration
const SITE_URL = "https://markdowncms.netlify.app";
const SITE_URL = "https://markdown.fast";
const SITE_NAME = "markdown sync framework";
const DEFAULT_OG_IMAGE = "/images/og-default.svg";
@@ -25,7 +25,7 @@ export default function Post() {
useEffect(() => {
if (!location.hash) return;
if (page === undefined && post === undefined) return;
// Small delay to ensure content is rendered
const timer = setTimeout(() => {
const id = location.hash.slice(1);
@@ -34,7 +34,7 @@ export default function Post() {
element.scrollIntoView({ behavior: "smooth" });
}
}, 100);
return () => clearTimeout(timer);
}, [location.hash, page, post]);