From a63b5beb7e6228889263cc5053b16fbc6805d6f9 Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 11 Jun 2022 13:56:37 +0200 Subject: [PATCH] add top bar to the cleaned homepage, and also fix the homepage pug markup (by adding commas after attrs) --- views/homepage.pug | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/views/homepage.pug b/views/homepage.pug index 6b573d9..885fbb8 100644 --- a/views/homepage.pug +++ b/views/homepage.pug @@ -7,14 +7,15 @@ html include includes/meta_description.pug include includes/head.pug body(class="" + (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + " homepage clean") + include includes/topbar.pug main h1 teddit - form(action="/search" method="GET") - input(type="text" name="q") - input(type="hidden" name="restrict_sr" value="on") - input(type="hidden" name="nsfw" value="on") - input(type="hidden" name="sort" value="relevance") - input(type="hidden" name="t" value="all") + form(action="/search", method="GET") + input(type="text", name="q") + input(type="hidden", name="restrict_sr", value="on") + input(type="hidden", name="nsfw", value="on") + input(type="hidden", name="sort", value="relevance") + input(type="hidden", name="t", value="all") .sublinks if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits) a(href="/r/popular") Popular @@ -74,4 +75,4 @@ html a(href="/r/listentothis") listentothis a(href="/r/blog") blog include includes/footer.pug - \ No newline at end of file +