From efcf2fc24c455acdf2ddc4adc8d20606883aa118 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Mon, 17 Feb 2025 22:41:01 -0500 Subject: [PATCH] feat: display contexted title if link is single-thread (#383) --- templates/post.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/post.html b/templates/post.html index 17ad456..adbe6d6 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,7 +1,13 @@ {% extends "base.html" %} {% import "utils.html" as utils %} -{% block title %}{{ post.title }} - r/{{ post.community }}{% endblock %} +{% block title %} + {% if single_thread %} + {{ comments[0].author.name }} comments on {{ post.title }} - r/{{ post.community }} + {% else %} + {{ post.title }} - r/{{ post.community }} + {% endif %} +{% endblock %} {% block search %} {% call utils::search(["/r/", post.community.as_str()].concat(), "") %}