diff --git a/blog.json b/blog.json
index a13c347..380fea3 100644
--- a/blog.json
+++ b/blog.json
@@ -59,6 +59,7 @@
"home-page-header": "my posts",
"comment-url": "\/c",
"recents": 14,
+ "visitor-count": "\/visit",
"blogs": {
"new-blog-management-system-": {
"title": "New blog management system!",
diff --git a/content/styles.css b/content/styles.css
index af025e6..91c8746 100644
--- a/content/styles.css
+++ b/content/styles.css
@@ -238,6 +238,10 @@ blockquote * {
}
}
+nav img {
+ height: 1rem;
+}
+
@media (prefers-contrast: more) {
:root {
--clr-bg: #000000;
diff --git a/netlify.toml b/netlify.toml
index f4aad8e..4e3a0a2 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -43,6 +43,12 @@
status = 404
force = true
+[[redirects]]
+ from = "/visit"
+ to = "https://server.ari-web.xyz/visit"
+ status = 301
+ force = true
+
[[redirects]]
from = "/*"
to = "https://ari-web.xyz/404.blog.xyz"
diff --git a/scripts/blog.py b/scripts/blog.py
index 17b1f59..a3262df 100755
--- a/scripts/blog.py
+++ b/scripts/blog.py
@@ -80,6 +80,7 @@ DEFAULT_CONFIG: Dict[str, Any] = {
"home-page-header": "my blogs",
"comment-url": "/c",
"recents": 16,
+ "visitor-count": "/visit",
"blogs": {},
}
DEFAULT_CONFIG_FILE: str = "blog.json"
@@ -128,6 +129,9 @@ skip
UTC
|
+ visitor
+ |
+
read
|
@@ -238,7 +242,9 @@ HOME_PAGE_HTML_TEMPLATE: str = f"""
latest post : \
{{latest_blog_title}}
+ |
+ visitor
|
git
@@ -617,6 +623,7 @@ def build(config: Dict[str, Any]) -> Tuple[int, Dict[str, Any]]:
% (
blog_title,
blog_time,
+ config["visitor-count"],
(read_time := read_time_of_markdown(blog_meta["content"], 150).text), # type: ignore
config["comment-url"],
config["base-homepage"],
@@ -700,6 +707,7 @@ def build(config: Dict[str, Any]) -> Tuple[int, Dict[str, Any]]:
author=config["full-name"],
locale=config["locale"],
page_header=config["home-page-header"],
+ visitor=config["visitor-count"],
)
)
)