Add dynamic page title

This commit is contained in:
Zed
2019-06-24 22:40:48 +02:00
parent fb3c8ab5c3
commit 38565e2e1f
4 changed files with 17 additions and 9 deletions

View File

@@ -79,3 +79,9 @@ proc linkUser*(profile: Profile; class=""): string =
result &= span("", class="verified-icon", title="Verified account")
if not username and profile.protected:
result &= span("🔒", class="protected-icon", title="Protected account")
proc pageTitle*(profile: Profile): string =
&"{profile.fullname} (@{profile.username}) | Nitter"
proc pageTitle*(page: string): string =
&"{page} | Nitter"