diff --git a/media/media.json b/media/media.json index 9cb8399..fcb0099 100644 --- a/media/media.json +++ b/media/media.json @@ -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", diff --git a/scripts/blog.py b/scripts/blog.py index c510b9e..4b86525 100755 --- a/scripts/blog.py +++ b/scripts/blog.py @@ -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,