bibliogram/src/site/pug/home.pug

83 lines
3.0 KiB
Plaintext
Raw Normal View History

2020-06-19 05:45:51 +00:00
//- Needs rssEnabled, allUnblocked, torAvailable, hasPrivacyPolicy, onionLocation
2020-02-01 08:17:10 +00:00
- const ll = lang.get(settings.language)
2020-01-28 10:37:19 +00:00
doctype html
2022-04-02 15:32:59 +00:00
html(lang=settings.language)
2020-01-28 10:37:19 +00:00
head
title Bibliogram
2020-02-05 06:05:18 +00:00
include includes/head
body.homepage(class={"use-boring-font": ll.meta_use_boring_font})
2020-01-28 10:37:19 +00:00
header
h1.banner
2020-02-18 00:39:20 +00:00
img.banner-image(src="/static/img/banner-min.svg" alt="Bibliogram")
2020-05-09 15:20:13 +00:00
2020-07-27 15:31:21 +00:00
.go-sections-container(dir=ll.meta_direction)
2020-01-28 10:37:19 +00:00
.go-sections
section
h2.title= ll.go_to_profile
2020-07-27 15:31:21 +00:00
form(method="get" action="/u" class=`dir-${ll.meta_direction}`).pair-entry
input(type="text" name="u" placeholder=ll.go_username_or_url).text
input(type="submit" value=ll.go_button).button
2020-01-28 10:37:19 +00:00
section
h2.title= ll.go_to_post
2020-07-27 15:31:21 +00:00
form(method="get" action="/p" class=`dir-${ll.meta_direction}`).pair-entry
input(type="text" name="p" placeholder=ll.go_shortcode_or_url).text
input(type="submit" value=ll.go_button).button
2020-05-09 15:20:13 +00:00
2020-07-27 15:31:21 +00:00
.about-container(dir=ll.meta_direction)
2020-01-28 10:37:19 +00:00
section.about
h2= ll.about_bibliogram_header
2020-07-20 01:53:17 +00:00
!= ll.pug_about_bibliogram_content({link_to_featured_profiles: constants.featured_profiles.length})
2020-12-17 13:02:56 +00:00
.notice
section.about
h2= ll.experiencing_problems_header
p: a(href="https://lists.sr.ht/~cadence/bibliogram-announce/%3C20201218014302.855fa8a816be2f19da2f56e3%40disroot.org%3E")= ll.t_read_more_here
2020-12-17 13:02:56 +00:00
section.about
h2= ll.about_this_instance_header
2020-02-01 08:17:10 +00:00
ul
2020-06-19 05:45:51 +00:00
if onionLocation
li: a(href=onionLocation)= ll.onion_site_available
li: a(href=settingsReferrer)= ll.t_settings
2020-02-05 10:11:00 +00:00
if hasPrivacyPolicy
li: a(href="/privacy")= ll.t_privacy_policy
2020-02-05 10:11:00 +00:00
else
li= ll.has_not_written_privacy_policy
2020-05-19 15:54:22 +00:00
if allUnblocked
li= ll.instance_not_blocked
else
li: a(href="https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instagram%20rate%20limits.md#tldr-what-does-it-mean-if-an-instance-is-blocked")= ll.instance_partially_blocked
if rssEnabled
li= ll.rss_enabled
2020-05-19 15:54:22 +00:00
else
li= ll.rss_disabled
2020-05-09 15:20:13 +00:00
h2= ll.external_links_header
2020-05-09 15:20:13 +00:00
ul
2020-01-28 10:37:19 +00:00
-
const links = [
["https://sr.ht/~cadence/bibliogram/", ll.source_link, "noopener noreferrer"],
["https://matrix.to/#/#bibliogram:matrix.org", ll.matrix_link, "noopener noreferrer"],
["https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md", ll.instances_link, "noopener noreferrer"],
["https://cadence.moe/about/contact", ll.contact_link, "noopener noreferrer"]
2020-01-28 10:37:19 +00:00
]
each entry in links
2020-07-16 10:20:40 +00:00
li: a(href!=entry[0] target="_blank" rel=entry[2])= entry[1]
2020-05-29 10:44:58 +00:00
if constants.featured_profiles.length
.featured-profiles#featured-profiles
h2.featured-profiles-header= ll.featured_profiles_header
2020-05-29 10:44:58 +00:00
table.featured-profile-table
tbody
each profile in constants.featured_profiles
tr
td.username: a(href=`/u/${profile.username}`) @#{profile.username}
td= profile.description
details
summary= ll.featured_profiles_whats_this
.details-content!= ll.html_featured_profiles_disclaimer