add top bar to the cleaned homepage, and also fix the homepage pug markup (by adding commas after attrs)

This commit is contained in:
teddit 2022-06-11 13:56:37 +02:00
parent 60d9b33825
commit a63b5beb7e
1 changed files with 8 additions and 7 deletions

View File

@ -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