mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Fix profile website links
This commit is contained in:
parent
88c1cd50a7
commit
b718bbe15c
3 changed files with 7 additions and 2 deletions
|
|
@ -19,3 +19,8 @@ proc linkUser*(profile: Profile, class=""): VNode =
|
|||
proc genImg*(url: string; class=""): VNode =
|
||||
buildHtml():
|
||||
img(src=url.getSigUrl("pic"), class=class, alt="Image")
|
||||
|
||||
proc linkText*(text: string; class=""): VNode =
|
||||
let url = if "http" notin text: "http://" & text else: text
|
||||
buildHtml():
|
||||
a(href=url, class=class): text text
|
||||
|
|
|
|||
Loading…
Reference in a new issue