2020-06-19 05:45:51 +00:00
|
|
|
//- Needs rssEnabled, allUnblocked, torAvailable, hasPrivacyPolicy, onionLocation
|
2020-02-01 08:17:10 +00:00
|
|
|
|
2020-07-19 13:40:27 +00:00
|
|
|
- const ll = lang.get(settings.language)
|
|
|
|
|
2020-01-28 10:37:19 +00:00
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
|
|
|
title Bibliogram
|
2020-02-05 06:05:18 +00:00
|
|
|
include includes/head
|
2020-01-28 10:37:19 +00:00
|
|
|
body.homepage
|
|
|
|
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-01-28 10:37:19 +00:00
|
|
|
.go-sections-container
|
|
|
|
.go-sections
|
|
|
|
section
|
2020-07-19 13:40:27 +00:00
|
|
|
h2.title= ll.go_to_profile
|
2020-01-28 10:37:19 +00:00
|
|
|
form(method="get" action="/u").pair-entry
|
2020-07-19 13:40:27 +00:00
|
|
|
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
|
2020-07-19 13:40:27 +00:00
|
|
|
h2.title= ll.go_to_post
|
2020-01-28 10:37:19 +00:00
|
|
|
form(method="get" action="/p").pair-entry
|
2020-07-19 13:40:27 +00:00
|
|
|
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-01-28 10:37:19 +00:00
|
|
|
.about-container
|
|
|
|
section.about
|
2020-07-19 13:40:27 +00:00
|
|
|
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-07-19 13:40:27 +00:00
|
|
|
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
|
2020-07-19 13:40:27 +00:00
|
|
|
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
|
2020-07-19 13:40:27 +00:00
|
|
|
li: a(href="/privacy")= ll.t_privacy_policy
|
2020-02-05 10:11:00 +00:00
|
|
|
else
|
2020-07-19 13:40:27 +00:00
|
|
|
li= ll.has_not_written_privacy_policy
|
2020-05-19 15:54:22 +00:00
|
|
|
if allUnblocked
|
2020-07-19 13:40:27 +00:00
|
|
|
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
|
2020-07-19 13:40:27 +00:00
|
|
|
li= ll.rss_disabled
|
2020-05-09 15:20:13 +00:00
|
|
|
|
2020-07-19 13:40:27 +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 = [
|
2020-07-19 13:40:27 +00:00
|
|
|
["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
|
2020-07-19 13:40:27 +00:00
|
|
|
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
|
2020-07-19 13:40:27 +00:00
|
|
|
summary= ll.featured_profiles_whats_this
|
2020-07-21 12:38:12 +00:00
|
|
|
.details-content!= ll.html_featured_profiles_disclaimer
|