1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-17 18:01:39 +00:00

Create initial language support

Create support for languages, then reformat user, home, and post pages
to use it, and create en and en-us language files.
This commit is contained in:
Cadence Ember 2020-07-20 01:40:27 +12:00
parent 1f76e43446
commit 496d53f47e
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
22 changed files with 319 additions and 54 deletions

View file

@ -4,8 +4,14 @@ mixin next_page_button(user, selectedTimeline, url, type)
-
const nu = new URL(url)
nu.searchParams.set("page", selectedTimeline.pages.length+1)
a(href=`${nu.search}#page-${selectedTimeline.pages.length+1}` data-page=(selectedTimeline.pages.length+1) data-username=(user.data.username) data-type=type)#next-page.next-page Next page
a(
href=`${nu.search}#page-${selectedTimeline.pages.length+1}`
data-page=(selectedTimeline.pages.length+1)
data-username=(user.data.username)
data-type=type
data-loading-text=ll.next_page_button_loading
)#next-page.next-page= ll.next_page_button
else
div
div.page-number.no-more-pages
span.number No more posts.
span.number= ll.no_more_posts_notice