update @ Sun 24 Apr 15:09:51 EEST 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-04-24 15:09:51 +03:00
parent 5c21669dab
commit f52c425b44
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

View file

@ -115,7 +115,9 @@ HOME_PAGE_HTML_TEMPLATE: str = f"""<!DOCTYPE html>
<body> <body>
<h1>My blogs</h1> <h1>My blogs</h1>
<div id="info-bar" aria-hidden="true"> <div id="info-bar" aria-hidden="true">
<p>last blog on: <code>{{lastest_blog_time}}</code> | latest blog: <a href="{{latest_blog_url}}">{{latest_blog_title}}</a> | <a href="{{git_url}}">source code</a></p> <p>last blog on: <code>{{lastest_blog_time}}</code> | \
latest blog: <a href="{{latest_blog_url}}">{{latest_blog_title}}</a> | \
<a href="{{git_url}}">git</a></p>
<hr/> <hr/>
</div> </div>
<div> <div>
@ -357,7 +359,8 @@ def build(config: Dict) -> Tuple[int, Dict]:
latest_blog_url=os.path.join(config["blog-dir"], latest_blog_id), latest_blog_url=os.path.join(config["blog-dir"], latest_blog_id),
latest_blog_title=b64decode( latest_blog_title=b64decode(
html_escape(lastest_blog["title"]) html_escape(lastest_blog["title"])
).decode(), ).decode()[:20]
+ "...",
git_url=config["git-url"], git_url=config["git-url"],
content=blog_list, content=blog_list,
) )