mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
Make Recent Writing on homepage dynamic from blog cache
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -19,24 +19,10 @@
|
||||
|
||||
<section>
|
||||
<h2>Recent Writing</h2>
|
||||
|
||||
<p><strong><a href="/essays/2026-03-22-the_maintainer_is_the_interface" class="project-link color-software">The Maintainer Is the Interface</a></strong><br>
|
||||
In open source, the first real interface isn't the API. It's the person who responds to your pull request.</p>
|
||||
|
||||
<p><strong><a href="/essays/2026-03-20-the_interface_is_the_subconscious" class="project-link color-philosophy">The Interface Is the Subconscious</a></strong><br>
|
||||
Every interface shapes cognition before conscious awareness engages. Visual interfaces shape feelings. Linguistic interfaces shape thinking. Neural interfaces will shape consciousness itself.</p>
|
||||
|
||||
<p><strong><a href="/essays/2026-03-20-building_a_digital_study_bible_with_ai" class="project-link color-ai">Building a Digital Study Bible with AI</a></strong><br>
|
||||
1,305 commits in two months. One person, one AI, one free Bible study application.</p>
|
||||
|
||||
<p><strong><a href="/essays/2026-03-18-open_source_gave_me_everything_until_i_had_nothing_left_to_give" class="project-link color-essay">Open Source Gave Me Everything Until I Had Nothing Left to Give</a></strong><br>
|
||||
The same intensity that produced Requests produced the conditions for the worst experiences of my life.</p>
|
||||
|
||||
<p><strong><a href="/essays/2026-03-18-designing_for_the_worst_day" class="project-link color-software">Designing for the Worst Day</a></strong><br>
|
||||
If it works for the person whose hands are shaking and whose thoughts won't line up, it works for everyone.</p>
|
||||
|
||||
<p><strong><a href="/essays/2026-03-18-values_i_outgrew_and_the_ones_that_stayed" class="project-link color-essay">The Lego Bricks Era</a></strong><br>
|
||||
The golden era of open source ended because the people who created it grew up. I'm one of them.</p>
|
||||
{% for post in recent_posts %}
|
||||
<p><strong><a href="{{ post.url }}" class="project-link color-essay">{{ post.title }}</a></strong><br>
|
||||
{{ post.excerpt }}</p>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user