From 843ae185ceb504c74b099d6e164f3b008718614f Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 5 Dec 2020 17:28:12 +0100 Subject: [PATCH] rm duplicate links element --- views/index.pug | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/views/index.pug b/views/index.pug index a3c4b98..e6ba36c 100644 --- a/views/index.pug +++ b/views/index.pug @@ -25,7 +25,11 @@ html a(href="/controversial") controversial li(class=sortby === 'top' ? 'active' : '') a(href="/top") top - #links + if !before && !after && sortby === 'hot' + #intro + h1 Welcome to teddit + h2 the alternative, privacy respecting, front page of internet. + #links.sr if sortby === 'top' || sortby === 'controversial' details summary @@ -54,11 +58,6 @@ html a(href="?t=year") past year li(class=past === 'all' ? 'active' : '') a(href="?t=all") all time - if !before && !after && sortby === 'hot' - #intro - h1 Welcome to teddit - h2 the alternative, privacy respecting, front page of internet. - #links.sr each link in json.links .link .upvotes