1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-16 11:08:49 +00:00

Private profile notice

This commit is contained in:
Cadence Fish
2020-01-28 01:06:44 +13:00
parent 9f5fa84f9a
commit f5cf4b19f7
3 changed files with 54 additions and 20 deletions

View File

@@ -39,8 +39,20 @@ html
a(rel="alternate" type="application/rss+xml" href=`/u/${user.data.username}/rss.xml`) RSS
a(rel="noreferrer noopener" href=`https://www.instagram.com/${user.data.username}`) instagram.com
main#timeline.timeline
each page, pageIndex in user.timeline.pages
+timeline_page(page, pageIndex)
- const hasPosts = !user.data.is_private && user.timeline.pages.length && user.timeline.pages[0].length
main(class=hasPosts ? "" : "no-posts")#timeline.timeline
if !user.data.is_private
if hasPosts
each page, pageIndex in user.timeline.pages
+timeline_page(page, pageIndex)
+next_page_button(user, url)
+next_page_button(user, url)
else
div
div.page-number
span.number No posts.
else
div
div.page-number
span.number Profile is private.