mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sun 24 Apr 15:09:51 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
5c21669dab
commit
f52c425b44
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue