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

@ -14,7 +14,7 @@
</head>
<body style="visibility: hidden;">
<nav>
<a href="/"><span id="lib">lib</span>reddit. <span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span></a>
<a id="logo" href="/"><span id="lib">lib</span>reddit. <span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span></a>
{% block search %}{% endblock %}
<a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a>
</nav>

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