update @ Fri 19 May 18:24:02 EEST 2023

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2023-05-19 18:24:02 +03:00
parent f0e1e5eb0a
commit 018fd6b5e8
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2
4 changed files with 19 additions and 0 deletions

View file

@ -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!",

View file

@ -238,6 +238,10 @@ blockquote * {
}
}
nav img {
height: 1rem;
}
@media (prefers-contrast: more) {
:root {
--clr-bg: #000000;

View file

@ -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"

View file

@ -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</a>
<span role="menuitem"><time>%s</time> UTC</span>
<span role="seperator" aria-hidden="true">|</span>
<span role="menuitem">visitor <img src="%s" alt="visitor count"></span>
<span role="seperator" aria-hidden="true">|</span>
<span role="menuitem"><time>%s</time> read</span>
<span role="seperator" aria-hidden="true">|</span>
@ -238,7 +242,9 @@ HOME_PAGE_HTML_TEMPLATE: str = f"""<!DOCTYPE html>
latest post : \
<a href="{{latest_blog_url}}">{{latest_blog_title}}</a>
</span>
<span role="seperator" aria-hidden="true">|</span>
<span role="menuitem">visitor <img src="{{visitor}}" alt="visitor count"></span>
<span aria-hidden="true" role="seperator">|</span>
<a role="menuitem" href="{{git_url}}">git</a>
@ -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"],
)
)
)