mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 12:19:18 +00:00
updates: site url to markdown.fast, png og image and site name
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user