mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
style: better headings
This commit is contained in:
parent
01d5afd12d
commit
3d11c3de06
2 changed files with 7 additions and 3 deletions
6
.github/add-headers.py
vendored
6
.github/add-headers.py
vendored
|
|
@ -64,9 +64,9 @@ headers = {
|
|||
"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):
|
||||
|
|
@ -75,7 +75,7 @@ def getHeader(page: str):
|
|||
header += f'title: "{data[0]}"\n'
|
||||
header += f"description: {data[1]}\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"
|
||||
return header
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue