1
0
mirror of https://codeberg.org/teddit/teddit synced 2025-02-16 20:20:36 +01:00

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

View File

@ -7,14 +7,15 @@ html
include includes/meta_description.pug include includes/meta_description.pug
include includes/head.pug include includes/head.pug
body(class="" + (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + " homepage clean") body(class="" + (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + " homepage clean")
include includes/topbar.pug
main main
h1 teddit h1 teddit
form(action="/search" method="GET") form(action="/search", method="GET")
input(type="text" name="q") input(type="text", name="q")
input(type="hidden" name="restrict_sr" value="on") input(type="hidden", name="restrict_sr", value="on")
input(type="hidden" name="nsfw" value="on") input(type="hidden", name="nsfw", value="on")
input(type="hidden" name="sort" value="relevance") input(type="hidden", name="sort", value="relevance")
input(type="hidden" name="t" value="all") input(type="hidden", name="t", value="all")
.sublinks .sublinks
if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits) if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits)
a(href="/r/popular") Popular a(href="/r/popular") Popular