Fix Title and Navbar

This commit is contained in:
spikecodes
2020-12-31 16:45:10 -08:00
parent a6dc7ee043
commit 93c1db502d
3 changed files with 12 additions and 8 deletions

View File

@ -1,7 +1,10 @@
{% extends "base.html" %}
{% import "utils.html" as utils %}
{% block title %}r/{{ sub.name }}: {{ sub.description }}{% endblock %}
{% block title %}
{% if sub.name != "" %}r/{{ sub.name }}: {{ sub.description }}
{% else %}Libreddit{% endif %}
{% endblock %}
{% block search %}
{% call utils::search(["/r/", sub.name.as_str()].concat(), "") %}