mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-11 17:42:08 +00:00
feat: display contexted title if link is single-thread (#383)
Some checks failed
Release Build / Rust project - latest (push) Has been cancelled
Rust Build & Publish / build (push) Has been cancelled
Pull Request / cargo test (push) Has been cancelled
Pull Request / cargo fmt --all -- --check (push) Has been cancelled
Pull Request / cargo clippy -- -D warnings (push) Has been cancelled
Some checks failed
Release Build / Rust project - latest (push) Has been cancelled
Rust Build & Publish / build (push) Has been cancelled
Pull Request / cargo test (push) Has been cancelled
Pull Request / cargo fmt --all -- --check (push) Has been cancelled
Pull Request / cargo clippy -- -D warnings (push) Has been cancelled
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" %}
|
||||
{% 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(), "") %}
|
||||
|
|
Loading…
Add table
Reference in a new issue