diff --git a/blog.json b/blog.json
index f22d499..f0abda6 100644
--- a/blog.json
+++ b/blog.json
@@ -57,10 +57,11 @@
"secondary": "#f9f6e8",
"type": "dark"
},
+ "favicon": "https://ari.lt/favicon.ico",
"manifest": {
"icons": [
{
- "src": "/favicon.ico",
+ "src": "https://ari.lt/favicon.ico",
"sizes": "128x128",
"type": "image/vnd.microsoft.icon"
}
diff --git a/scripts/blog.py b/scripts/blog.py
index 032ba94..85800e0 100755
--- a/scripts/blog.py
+++ b/scripts/blog.py
@@ -90,10 +90,11 @@ DEFAULT_CONFIG: dict[str, typing.Any] = {
"secondary": "#fff",
"type": "dark",
},
+ "favicon": "https://ari.lt/favicon.ico",
"manifest": {
"icons": [
{
- "src": "/favicon.ico",
+ "src": "https://ari.lt/favicon.ico",
"sizes": "128x128",
"type": "image/vnd.microsoft.icon",
},
@@ -181,7 +182,7 @@ HTML_BEGIN: typing.Final[
-
+
int:
image_meta: str = ""
if "preview" in post and post["preview"] in MEDIA_INDEX:
- src: str = f"{config['blog']}/media/{post['preview']}.{MEDIA_INDEX[post['preview']]['ext']}"
+ src: str = (
+ f"{config['blog']}/media/{post['preview']}.{MEDIA_INDEX[post['preview']]['ext']}"
+ )
image_meta = f"""
@@ -1203,6 +1206,7 @@ def build(config: dict[str, typing.Any]) -> int:
web_mini.html.minify_html(
POST_TEMPLATE.format(
lang=lang,
+ favicon=config["favicon"],
keywords=html_escape(
", ".join(
set(post["keywords"] + config["default-keywords"])
@@ -1261,6 +1265,7 @@ def build(config: dict[str, typing.Any]) -> int:
web_mini.html.minify_html(
INDEX_TEMPLATE.format( # type: ignore
lang=lang,
+ favicon=config["favicon"],
keywords=(bkw := html_escape(", ".join(config["blog-keywords"]))),
theme_type=config["theme"]["type"],
theme_primary=config["theme"]["primary"],
@@ -1322,6 +1327,7 @@ def build(config: dict[str, typing.Any]) -> int:
web_mini.html.minify_html(
STATS_TEMPLATE.format(
lang=lang,
+ favicon=config["favicon"],
keywords=bkw + ", stats, statistics",
theme_type=config["theme"]["type"],
theme_primary=config["theme"]["primary"],