1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

build(deps): update latest

This commit is contained in:
2024-12-06 09:30:44 +01:00
parent 251b0b4038
commit d52a0c6f08
12 changed files with 2339 additions and 2173 deletions

View File

@ -103,13 +103,14 @@ export const BlogPostContent: React.FC<BlogPostContentProps> = async (
},
a: (props) => {
const { href = "", ...rest } = props
if (href.startsWith("#")) {
const hrefString = href as string
if (hrefString.startsWith("#")) {
return <a {...props} />
}
if (href.startsWith("../posts/")) {
if (hrefString.startsWith("../posts/")) {
return (
<Link
href={href
href={hrefString
.replace("../posts/", "/blog/")
.replace(".md", "")}
{...rest}