🚑️ fix text readability & avif
This commit is contained in:
parent
840287e317
commit
43c8d4d013
3 changed files with 4 additions and 4 deletions
|
@ -19,4 +19,4 @@ Specify mirror urls inside of `mirrors.txt` and it will be served at `/mirrors.t
|
|||
The site colors can be configured with pywal. Place pywal's colors.json in the config folder.
|
||||
|
||||
## Background
|
||||
To set a background picture place it at `config/wall.png`
|
||||
To set a background picture place it at `config/wall.avif`
|
|
@ -20,4 +20,4 @@ def me_picture():
|
|||
|
||||
@asset_pages.route("/wall")
|
||||
def wall_bg():
|
||||
return filesend("/config/wall.png")
|
||||
return filesend("/config/wall.avif")
|
||||
|
|
|
@ -21,8 +21,8 @@ def buildSite(content, title=None, disable_color=False):
|
|||
bg = colors()["colors"][f"color{i}"]
|
||||
c_style = f"background: {bg}; color: {fg};"
|
||||
|
||||
if os.path.exists("/config/wall.png"):
|
||||
c_style += "background-image: url('assets/wall');background-size:cover"
|
||||
if os.path.exists("/config/wall.avif"):
|
||||
c_style += "background-image: url('assets/wall');background-size:cover;text-shadow: 1px 1px 3px black;"
|
||||
|
||||
return Document(
|
||||
head=Head(
|
||||
|
|
Loading…
Add table
Reference in a new issue