✨ Welcome to {{ config.name }}!
@@ -21,6 +21,8 @@
{% for post in list %}
{{ components::post(post=post[0], owner=post[1], secondary=true, community=post[2], show_community=true) }}
{% endfor %}
+
+ {{ components::pagination(page=page, items=list|length) }}
{% endif %}
diff --git a/crates/app/src/public/html/timelines/popular.html b/crates/app/src/public/html/timelines/popular.html
index a163421..d6f4405 100644
--- a/crates/app/src/public/html/timelines/popular.html
+++ b/crates/app/src/public/html/timelines/popular.html
@@ -9,6 +9,8 @@
{% for post in list %}
{{ components::post(post=post[0], owner=post[1], secondary=true, community=post[2], show_community=true) }}
{% endfor %}
+
+ {{ components::pagination(page=page, items=list|length) }}
{% endblock %}
diff --git a/crates/app/src/routes/pages/misc.rs b/crates/app/src/routes/pages/misc.rs
index 7105d66..f49e72a 100644
--- a/crates/app/src/routes/pages/misc.rs
+++ b/crates/app/src/routes/pages/misc.rs
@@ -58,9 +58,48 @@ pub async fn index_request(
let mut context = initial_context(&data.0.0, lang, &Some(user)).await;
context.insert("list", &list);
+ context.insert("page", &req.page);
Html(data.1.render("timelines/home.html", &context).unwrap())
}
+/// `/following`
+pub async fn following_request(
+ jar: CookieJar,
+ Extension(data): Extension