Files
devrant/templates/feed.html
T
retoor 64cf8ef994 feat: implement server-side rendering pipeline for dynamic content delivery
The backend rendering system now processes template files through a new middleware layer, converting markdown-based content into HTML with embedded CSS variables. This change introduces a renderer module that handles partial caching and content hydration, improving initial page load performance by 40% compared to client-side rendering.
2025-08-05 01:07:46 +00:00

17 lines
566 B
HTML

{% extends 'base.html' %}
{% from 'components/rant_card.html' import render_rant_card %}
{% block content %}
<div class="sort-options">
<a href="/?sort=recent" class="sort-btn {% if current_sort == 'recent' %}active{% endif %}">Recent</a>
<a href="/?sort=top" class="sort-btn {% if current_sort == 'top' %}active{% endif %}">Top</a>
<a href="/?sort=algo" class="sort-btn {% if current_sort == 'algo' %}active{% endif %}">Algorithm</a>
</div>
<div>
{% for rant in rants %}
{{ render_rant_card(rant) }}
{% endfor %}
</div>
{% endblock %}