diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-29 14:47:26 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-29 14:47:26 +0100 |
commit | 015edbc0ea284fcdf7e5a3796d711a96036814be (patch) | |
tree | 4e85adb949fc3da4d184bd3ac845a93ff17f046b | |
parent | dd3f431d2f20409ccb490241e70687a5f5c7c79c (diff) | |
download | boymoder.blog-015edbc0ea284fcdf7e5a3796d711a96036814be.tar.gz boymoder.blog-015edbc0ea284fcdf7e5a3796d711a96036814be.zip |
Added FFS counter
-rwxr-xr-x | app.py | 3 | ||||
-rwxr-xr-x | templates/index.html.j2 | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -68,9 +68,10 @@ def index(): return flask.render_template( "index.html.j2", **get_template_items("eden's site :3", db), + days_till_ffs = datetime.datetime(2025, 11, 8) - datetime.datetime.now(), markdown = parser.parse_text(f.read())[0], featured_thoughts = db.get_featured_thoughts(), - commits = db.get_cached_commits()[:10], + commits = db.get_cached_commits()[:15], sidebar_img = get_sidebar_img(db) ) diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 53ca77e..d6c08d8 100755 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -1,6 +1,7 @@ {% extends "template.html.j2" %} {% block content %} <aside> + <a><i>{{ "%d days until FFS" % days_till_ffs.days }}</i></a> <section id="recent_thoughts"> <h4>recent thoughts:</h4> <ul> |