mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-02 04:37:35 +03:00
feat: display contexted title if link is single-thread (#383)
This commit is contained in:
parent
9afe886c2c
commit
efcf2fc24c
1 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,13 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% import "utils.html" as utils %}
|
{% 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 %}
|
{% block search %}
|
||||||
{% call utils::search(["/r/", post.community.as_str()].concat(), "") %}
|
{% call utils::search(["/r/", post.community.as_str()].concat(), "") %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue