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:
@ -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} />
|
||||
}
|
||||
|
Reference in New Issue
Block a user