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:
parent
1f76e43446
commit
496d53f47e
22 changed files with 319 additions and 54 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue