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

feat(skills): add PHP and Laravel

This commit is contained in:
Divlo
2022-10-20 22:24:01 +02:00
parent c419fb3bb4
commit 232b54588a
8 changed files with 33 additions and 18 deletions

View File

@ -41,12 +41,10 @@ const BlogPostPage: NextPage<BlogPostPageProps> = (props) => {
img: (properties) => {
const { src, alt, ...props } = properties
let source = src
if (src?.startsWith('../public/') ?? false) {
source = src?.replace('../public/', '/')
}
source = src?.replace('../public/', '/')
return <img src={source} alt={alt} {...props} />
},
a: (props: React.ComponentPropsWithoutRef<'a'>) => {
a: (props) => {
if (props.href?.startsWith('#') ?? false) {
return <a {...props} />
}