Minor code improvements

This commit is contained in:
Zed
2021-12-30 04:18:40 +01:00
parent eed4d4033f
commit d96550fcce
5 changed files with 17 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ proc linkUser*(profile: Profile, class=""): VNode =
icon "lock", title="Protected account"
proc linkText*(text: string; class=""): VNode =
let url = if "http" notin text: "http://" & text else: text
let url = if "http" notin text: https & text else: text
buildHtml():
a(href=url, class=class): text text