From 807d331d1c7234e7f19075be790493dd1641feb1 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Sat, 6 Apr 2024 14:10:07 +0200
Subject: Add favicon

---
 src/theme/BlogPostItem/Header/Author.tsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'src/theme/BlogPostItem/Header/Author.tsx')

diff --git a/src/theme/BlogPostItem/Header/Author.tsx b/src/theme/BlogPostItem/Header/Author.tsx
index 226caee..7710a98 100644
--- a/src/theme/BlogPostItem/Header/Author.tsx
+++ b/src/theme/BlogPostItem/Header/Author.tsx
@@ -6,14 +6,16 @@
 
 import Author from '@theme-original/BlogPostItem/Header/Author';
 import type AuthorType from '@theme/BlogPostItem/Header/Author';
-import type {WrapperProps} from '@docusaurus/types';
+import type { WrapperProps } from '@docusaurus/types';
 import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
 
 type Props = WrapperProps<typeof AuthorType>;
 
 export default function AuthorWrapper(props: Props): JSX.Element {
-  const { siteConfig: { url } } = useDocusaurusContext();
-  const newProps = {...props};
+  const {
+    siteConfig: { url },
+  } = useDocusaurusContext();
+  const newProps = { ...props };
   const { author } = props;
   if (author.url !== undefined && author.url.startsWith(url)) {
     const newURL = author.url.substring(url.length);
@@ -23,5 +25,5 @@ export default function AuthorWrapper(props: Props): JSX.Element {
     const newImageURL = author.imageURL.substring(url.length);
     newProps.author.imageURL = newImageURL.replace(/\.jpg$/, '.webp');
   }
-  return <Author {...newProps} />
+  return <Author {...newProps} />;
 }
-- 
cgit v1.2.3-54-g00ecf

