Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 committed May 8, 2024
2 parents 4a21db8 + 33f7ba0 commit c6f9bf9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions quarkdown/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ class url:
styles = "https://raw.githack.com/Sup2point0/Quarkdown/main/quarkdown/resources/styles"

fonts = {
"abel": "family=Abel",
"abel": "Abel",
"geologica": "Geologica:slnt,wght@-12..0,100..900",
"montserrat": "family=Montserrat:ital,wght@0,100..900;1,100..900",
"nanum": "family=Nanum+Pen+Script",
"outfit": "family=Outfit:wght@100..900",
"sen": "family=Sen:wght@400..800",
"shadows into light two": "family=Shadows+Into+Light+Two",
"montserrat": "Montserrat:ital,wght@0,100..900;1,100..900",
"nanum": "Nanum+Pen+Script",
"outfit": "Outfit:wght@100..900",
"readex": "Readex+Pro:wght@160..700",
"sen": "Sen:wght@400..800",
"shadows into light two": "Shadows+Into+Light+Two",
}
'''Google Fonts URLs.'''

Expand All @@ -29,7 +30,7 @@ def fonts(fonts: list[str]) -> str:

return (
f'''<link rel="stylesheet" type="text/css" href="'''
f'''{url.google_fonts}{"&".join(url.fonts[font.lower] for font in fonts)}&display=swap">'''
f'''{url.google_fonts}{"&".join("family=" + url.fonts[font.lower] for font in fonts)}&display=swap">'''
)

def style(style: str) -> str:
Expand Down

0 comments on commit c6f9bf9

Please sign in to comment.