~cadence/bibliogram

ref: d660c849411808d12f8ab75beac87d633491c6e2 bibliogram/src/site/pug/home.pug -rw-r--r-- 2.9 KiB
d660c849Cadence Ember Fix shortcode fetching 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//- Needs rssEnabled, allUnblocked, torAvailable, hasPrivacyPolicy, onionLocation

- const ll = lang.get(settings.language)

doctype html
html
	head
		title Bibliogram
		include includes/head
	body.homepage
		header
			h1.banner
				img.banner-image(src="/static/img/banner-min.svg" alt="Bibliogram")

		.go-sections-container(dir=ll.meta_direction)
			.go-sections
				section
					h2.title= ll.go_to_profile
					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
				section
					h2.title= ll.go_to_post
					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

		.about-container(dir=ll.meta_direction)
			section.about
				h2= ll.about_bibliogram_header
				!= ll.pug_about_bibliogram_content({link_to_featured_profiles: constants.featured_profiles.length})

			.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

			section.about
				h2= ll.about_this_instance_header
				ul
					if onionLocation
						li: a(href=onionLocation)= ll.onion_site_available
					li: a(href=settingsReferrer)= ll.t_settings
					if hasPrivacyPolicy
						li: a(href="/privacy")= ll.t_privacy_policy
					else
						li= ll.has_not_written_privacy_policy
					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
					else
						li= ll.rss_disabled

				h2= ll.external_links_header
				ul
					-
						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"]
						]
					each entry in links
						li: a(href!=entry[0] target="_blank" rel=entry[2])= entry[1]

				if constants.featured_profiles.length
					.featured-profiles#featured-profiles
						h2.featured-profiles-header= ll.featured_profiles_header

						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