style: better headings

This commit is contained in:
taskylizard 2024-02-04 13:13:18 +00:00
parent 01d5afd12d
commit 3d11c3de06
No known key found for this signature in database
GPG Key ID: 1820131ED1A24120
2 changed files with 7 additions and 3 deletions

View File

@ -64,9 +64,9 @@ 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"><h1 class="text-4xl font-extrabold tracking-tight lg:text-5xl lg:leading-[3.5rem]">' 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]">'
description = '<p class="text-gray-500 dark:text-gray-400">' description = '<p class="text-black dark:text-text-2">'
def getHeader(page: str): def getHeader(page: str):
@ -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]}</h1>\n" header += f"{title}{data[0]}</h2>\n"
header += f"{description}{data[1]}</p></div>\n\n" header += f"{description}{data[1]}</p></div>\n\n"
return header return header

View File

@ -3,6 +3,10 @@ title: Monthly Updates [Jan] Happy New Year!
description: Happy New Year to our FMHY family. description: Happy New Year to our FMHY family.
date: 2024-01-01 date: 2024-01-01
next: false next: false
aside: left
prev: false
sidebar: false
footer: true
--- ---
<Post authors="['nbats', 'zinklog', 'Q', 'Kai', 'taskylizard']" /> <Post authors="['nbats', 'zinklog', 'Q', 'Kai', 'taskylizard']" />