diff --git a/blog.json b/blog.json index 943451d..f22d499 100644 --- a/blog.json +++ b/blog.json @@ -62,7 +62,7 @@ { "src": "/favicon.ico", "sizes": "128x128", - "type": "image/x-icon" + "type": "image/vnd.microsoft.icon" } ] }, diff --git a/scripts/blog.py b/scripts/blog.py index 6992656..a059765 100755 --- a/scripts/blog.py +++ b/scripts/blog.py @@ -95,7 +95,7 @@ DEFAULT_CONFIG: dict[str, typing.Any] = { { "src": "/favicon.ico", "sizes": "128x128", - "type": "image/x-icon", + "type": "image/vnd.microsoft.icon", }, ], }, @@ -181,7 +181,7 @@ HTML_BEGIN: typing.Final[ - + + @@ -234,6 +235,7 @@ POST_TEMPLATE: typing.Final[str] = ( {blog_title} -> {post_title} + @@ -1189,7 +1191,8 @@ def build(config: dict[str, typing.Any]) -> int: image_meta: str = "" if "preview" in post and post["preview"] in MEDIA_INDEX: - src: str = f"/media/{post['preview']}.{MEDIA_INDEX[post['preview']]['ext']}" + src: str = f"{config['blog']}/media/{post['preview']}.{MEDIA_INDEX[post['preview']]['ext']}" + image_meta = f""" """