mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add dynamic page title
This commit is contained in:
parent
fb3c8ab5c3
commit
38565e2e1f
4 changed files with 17 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue