feat: display contexted title if link is single-thread (#383)

This commit is contained in:
Matthew Esposito 2025-02-17 22:41:01 -05:00 committed by GitHub
parent 9afe886c2c
commit efcf2fc24c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(), "") %}