diff --git a/tuftecms/blueprints/main.py b/tuftecms/blueprints/main.py index 89a0a7d..5955d3d 100644 --- a/tuftecms/blueprints/main.py +++ b/tuftecms/blueprints/main.py @@ -132,8 +132,16 @@ def og_image(path): @main_bp.route("/") def index(): """Homepage using the homepage.html template.""" + from ..core.cache import get_blog_cache + + blog_data = get_blog_cache() + recent_posts = blog_data.get("posts", [])[:6] + return render_template( - "homepage.html", current_year=datetime.now().year, title="Home" + "homepage.html", + current_year=datetime.now().year, + title="Home", + recent_posts=recent_posts, ) diff --git a/tuftecms/templates/homepage.html b/tuftecms/templates/homepage.html index f2b5302..e20cd23 100644 --- a/tuftecms/templates/homepage.html +++ b/tuftecms/templates/homepage.html @@ -19,24 +19,10 @@

Recent Writing

- -

The Maintainer Is the Interface
- In open source, the first real interface isn't the API. It's the person who responds to your pull request.

- -

The Interface Is the Subconscious
- Every interface shapes cognition before conscious awareness engages. Visual interfaces shape feelings. Linguistic interfaces shape thinking. Neural interfaces will shape consciousness itself.

- -

Building a Digital Study Bible with AI
- 1,305 commits in two months. One person, one AI, one free Bible study application.

- -

Open Source Gave Me Everything Until I Had Nothing Left to Give
- The same intensity that produced Requests produced the conditions for the worst experiences of my life.

- -

Designing for the Worst Day
- If it works for the person whose hands are shaking and whose thoughts won't line up, it works for everyone.

- -

The Lego Bricks Era
- The golden era of open source ended because the people who created it grew up. I'm one of them.

+ {% for post in recent_posts %} +

{{ post.title }}
+ {{ post.excerpt }}

+ {% endfor %}