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 17:56:38 EET 2024
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
d310df30c3
commit
b121745fed
2 changed files with 7 additions and 4 deletions
|
@ -62,7 +62,7 @@
|
|||
{
|
||||
"src": "/favicon.ico",
|
||||
"sizes": "128x128",
|
||||
"type": "image/x-icon"
|
||||
"type": "image/vnd.microsoft.icon"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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[
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" href="/favicon.ico" sizes="128x128" type="image/x-icon" />
|
||||
<link rel="icon" href="{blog}/favicon.ico" sizes="128x128" type="image/vnd.microsoft.icon" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="{keywords}"
|
||||
|
@ -192,6 +192,7 @@ HTML_BEGIN: typing.Final[
|
|||
/>
|
||||
<meta name="color-scheme" content="{theme_type}" />
|
||||
<meta name="theme-color" content="{theme_primary}" />
|
||||
<meta property="og:site_name" content="{blog_title}" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<link rel="canonical" href="{blog}/{path}">
|
||||
<link rel="og:url" href="{blog}/{path}">
|
||||
|
@ -234,6 +235,7 @@ POST_TEMPLATE: typing.Final[str] = (
|
|||
<style type="text/css">{post_critical_css}{code_css}</style>
|
||||
<title>{blog_title} -> {post_title}</title>
|
||||
<meta property="og:title" content="{blog_title} -> {post_title}" />
|
||||
<meta property="twitter:title" content="{blog_title} -> {post_title}" />
|
||||
<meta name="description" content="{post_title} by {author} at {post_creation_time} GMT -- {post_description}" />
|
||||
<meta property="og:description" content="{post_title} by {author} at {post_creation_time} GMT -- {post_description}" />
|
||||
<meta property="twitter:description" content="{post_title} by {author} at {post_creation_time} GMT -- {post_description}" />
|
||||
|
@ -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"""<meta property="og:image" content="{src}" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:image" content="{src}" />"""
|
||||
|
|
Loading…
Add table
Reference in a new issue