mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sun Dec 15 16:26:52 EET 2024
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
2f1b0cd5ea
commit
8fdf660002
2 changed files with 3 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
|||
"type": "image",
|
||||
"width": 720,
|
||||
"height": 1280,
|
||||
"alt": "A black cat sitting in a box peacefully.",
|
||||
"purpose": "To have a cute cat who looks over blog.ari.lt!",
|
||||
"alt": "A black cat sitting in a box peacefully",
|
||||
"purpose": "To have a cute cat who looks over blog.ari.lt",
|
||||
"title": "Tina in a box (2019-2020, I think)",
|
||||
"license": "CC-BY-SA",
|
||||
"credit": "Ari Archer",
|
||||
|
|
|
@ -1788,20 +1788,19 @@ def media(config: dict[str, typing.Any]) -> int:
|
|||
"type": "image",
|
||||
"width": width,
|
||||
"height": height,
|
||||
"alt": iinput("alt text"),
|
||||
}
|
||||
elif mime.startswith("audio/"):
|
||||
shutil.copy(path, fpath)
|
||||
|
||||
MEDIA_INDEX[hash_hex] = {
|
||||
"type": "audio",
|
||||
"alt": iinput("alt text"),
|
||||
}
|
||||
else:
|
||||
return err(f"unsupported MIME: {mime!r}")
|
||||
|
||||
MEDIA_INDEX[hash_hex].update(
|
||||
{
|
||||
"alt": iinput("alt text").strip("."),
|
||||
"purpose": purpose,
|
||||
"title": title,
|
||||
"license": license,
|
||||
|
|
Loading…
Add table
Reference in a new issue