fix(headers): use h1 instead

This commit is contained in:
taskylizard 2024-02-04 13:16:04 +00:00
parent 3d11c3de06
commit 2d16b158cb
No known key found for this signature in database
GPG Key ID: 1820131ED1A24120

View File

@ -64,7 +64,7 @@ headers = {
"UnsafeSites.md": ["Unsafe Sites", "Unsafe/harmful sites to avoid."], "UnsafeSites.md": ["Unsafe Sites", "Unsafe/harmful sites to avoid."],
} }
title = '<div class="space-y-2 not-prose"><h2 class="text-4xl font-extrabold tracking-tight text-primary underline lg:text-5xl lg:leading-[3.5rem]">' title = '<div class="space-y-2 not-prose"><h1 class="text-4xl font-extrabold tracking-tight text-primary underline lg:text-5xl lg:leading-[3.5rem]">'
description = '<p class="text-black dark:text-text-2">' description = '<p class="text-black dark:text-text-2">'
@ -75,7 +75,7 @@ def getHeader(page: str):
header += f'title: "{data[0]}"\n' header += f'title: "{data[0]}"\n'
header += f"description: {data[1]}\n" header += f"description: {data[1]}\n"
header += "---\n" header += "---\n"
header += f"{title}{data[0]}</h2>\n" header += f"{title}{data[0]}</h1>\n"
header += f"{description}{data[1]}</p></div>\n\n" header += f"{description}{data[1]}</p></div>\n\n"
return header return header