2022-06-10 22:24:58 +02:00
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
|
|
|
title teddit
|
|
|
|
meta(property='og:title', content='home : teddit')
|
|
|
|
include includes/meta_default.pug
|
|
|
|
include includes/meta_description.pug
|
|
|
|
include includes/head.pug
|
|
|
|
body(class="" + (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + " homepage clean")
|
2022-06-11 13:56:37 +02:00
|
|
|
include includes/topbar.pug
|
2022-06-10 22:24:58 +02:00
|
|
|
main
|
|
|
|
h1 teddit
|
2022-06-11 13:56:37 +02:00
|
|
|
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")
|
2022-06-10 22:24:58 +02:00
|
|
|
.sublinks
|
|
|
|
if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits)
|
|
|
|
a(href="/r/popular") Popular
|
|
|
|
a(href="/r/all") All
|
|
|
|
a(href="/saved") Saved
|
|
|
|
each subreddit in user_preferences.subbed_subreddits
|
|
|
|
a(href="/r/" + subreddit) #{subreddit}
|
2022-06-11 19:26:18 +02:00
|
|
|
else if instance_config.suggested_subreddits && Array.isArray(instance_config.suggested_subreddits)
|
|
|
|
each subreddit in instance_config.suggested_subreddits
|
2022-06-11 18:53:20 +02:00
|
|
|
if subreddit.toLowerCase() === 'saved'
|
|
|
|
a(href="/saved") Saved
|
|
|
|
else
|
|
|
|
a(href="/r/" + subreddit) #{subreddit}
|
2022-06-10 22:24:58 +02:00
|
|
|
include includes/footer.pug
|
2022-06-11 13:56:37 +02:00
|
|
|
|