aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-29 14:47:26 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-29 14:47:26 +0100
commit015edbc0ea284fcdf7e5a3796d711a96036814be (patch)
tree4e85adb949fc3da4d184bd3ac845a93ff17f046b
parentdd3f431d2f20409ccb490241e70687a5f5c7c79c (diff)
downloadeda.gay-015edbc0ea284fcdf7e5a3796d711a96036814be.tar.gz
eda.gay-015edbc0ea284fcdf7e5a3796d711a96036814be.zip
Added FFS counter
-rwxr-xr-xapp.py3
-rwxr-xr-xtemplates/index.html.j21
2 files changed, 3 insertions, 1 deletions
diff --git a/app.py b/app.py
index d1f1134..47bb129 100755
--- a/app.py
+++ b/app.py
@@ -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>