update @ Fri 17 Jun 00:05:19 EEST 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-06-17 00:05:19 +03:00
parent 2f99c691d1
commit 7a18f884cc
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
2 changed files with 4 additions and 1 deletions

View file

@ -52,6 +52,7 @@
"background-colour": "#262220",
"full-name": "Ari Archer",
"locale": "en_GB",
"home-page-header": "My blogs",
"blogs": {
"new-blog-management-system-": {
"title": "TmV3IGJsb2cgbWFuYWdlbWVudCBzeXN0ZW0h",

View file

@ -61,6 +61,7 @@ DEFAULT_CONFIG: Dict = {
"background-colour": "#262220",
"full-name": "Ari Archer",
"locale": "en_GB",
"home-page-header": "My blogs",
"blogs": {},
}
DEFAULT_CONFIG_FILE: str = "blog.json"
@ -122,7 +123,7 @@ HOME_PAGE_HTML_TEMPLATE: str = f"""<!DOCTYPE html>
<link rel="manifest" href="/manifest.json"/>
</head>
<body>
<h1>My blogs</h1>
<h1>{{page_header}}</h1>
<nav id="info-bar" aria-hidden="true">
<p>last blog on: <time>{{lastest_blog_time}}</time> GMT | \
latest blog: <a href="{{latest_blog_url}}">{{latest_blog_title}}</a> | \
@ -402,6 +403,7 @@ def build(config: Dict) -> Tuple[int, Dict]:
content=blog_list,
author=config["full-name"],
locale=config["locale"],
page_header=config["home-page-header"],
)
)
)