fix: Fix several lighthouse issues
This commit is contained in:
8 files changed
+36
-5
No files matched your search
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://www.ermnvldmr.com/sitemap.xml
|
||||
@@ -68,7 +68,7 @@ export const ArticleLayout: React.FC<ArticleLayoutProps> = ({
|
||||
|
||||
return (
|
||||
<IndexLayout>
|
||||
<Container as="article" className={cn('w-8/12', className)}>
|
||||
<Container as="article" bg="transparent" className={cn('w-full md:w-8/12', className)}>
|
||||
<VStack className="w-full" gap={8}>
|
||||
<VStack as="header" gap={4}>
|
||||
<HStack align="center" gap={2} wrap="wrap">
|
||||
@@ -97,7 +97,7 @@ export const ArticleLayout: React.FC<ArticleLayoutProps> = ({
|
||||
</Paragraph>
|
||||
)}
|
||||
</VStack>
|
||||
<Container as="section" className='w-full'>
|
||||
<Container as="section" bg="transparent" className='w-full'>
|
||||
<Markdown>{children}</Markdown>
|
||||
</Container>
|
||||
</VStack>
|
||||
|
||||
@@ -29,6 +29,16 @@ export function createPage(Component: React.ComponentType, options: PageOptions
|
||||
document.title = options.title;
|
||||
}
|
||||
|
||||
if (options.description) {
|
||||
let metaDescription = document.querySelector('meta[name="description"]');
|
||||
if (!metaDescription) {
|
||||
metaDescription = document.createElement('meta');
|
||||
metaDescription.setAttribute('name', 'description');
|
||||
document.head.appendChild(metaDescription);
|
||||
}
|
||||
metaDescription.setAttribute('content', options.description);
|
||||
}
|
||||
|
||||
if (rootElement) {
|
||||
const node = (
|
||||
<React.StrictMode>
|
||||
|
||||
Reference in new issue
Block a user