{% extends "root.html" %}
{# Landing, Classic (src/handlers/landing.rs): categories on the left; on the
right Latest and, under it, Popular, across everything the viewer can see.
Each heading opens its full feed (/p/latest, /p/popular). The full
categories page is /c/. #}
{% block width %}max-w-7xl{% endblock %}
{% block content %}
<div class="grid grid-cols-1 gap-6 text-left lg:grid-cols-[18rem_minmax(0,1fr)]">
{% set all_href = "/c/" %}
{% include "forum/_landing_categories.html" %}
<div class="min-w-0 space-y-8">
<section id="landing-latest" aria-label="Latest topics" class="space-y-3">
<div class="flex flex-wrap items-center justify-between gap-2">
<h1 class="text-2xl font-bold">
<a href="/p/latest" class="hover:text-primary" title="All latest topics"><i class="fas fa-clock mr-1 text-lg opacity-60" aria-hidden="true"></i>Latest</a>
</h1>
<div class="flex items-center gap-2">
<a href="/p/latest" class="link link-hover text-sm opacity-70">All latest <i class="fas fa-arrow-right text-xs"></i></a>
{% set toggle_base = "/" %}{% set view_mode = "classic" %}
{% include "forum/_view_toggle.html" %}
</div>
</div>
{% if latest %}
{% set topics = latest %}{% include "forum/_topic_list.html" %}
{% else %}
<p class="rounded-box border border-dashed border-base-300 p-6 text-center text-sm opacity-60">No topics yet.</p>
{% endif %}
</section>
<section id="landing-popular" aria-label="Popular topics" class="space-y-3">
<div class="flex flex-wrap items-center justify-between gap-2">
<h2 class="text-2xl font-bold">
<a href="/p/popular" class="hover:text-primary" title="All popular topics"><i class="fas fa-fire mr-1 text-lg opacity-60" aria-hidden="true"></i>Popular</a>
</h2>
<a href="/p/popular" class="link link-hover text-sm opacity-70">All popular <i class="fas fa-arrow-right text-xs"></i></a>
</div>
{% if popular %}
{% set topics = popular %}{% include "forum/_topic_list.html" %}
{% else %}
<p class="rounded-box border border-dashed border-base-300 p-6 text-center text-sm opacity-60">Nothing popular in the last 30 days yet.</p>
{% endif %}
</section>
</div>
</div>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
2.3 KiB · text
History
ad7d0f4