fix: Fix several lighthouse issues

This commit is contained in:
deytenit committed 2026-02-15 19:14:12 +03:00
1 parent 90e8fad496
commit a571b343c8
8 files changed
+36 -5

No files matched your search

+4
View File
@@ -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>
+10
View File
@@ -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>