номер текущей странички выводится в блоке пагинации в /posts

design
serr 2025-06-06 18:34:17 +03:00
parent 21ce6944f8
commit 16483803a5
4 changed files with 4 additions and 2 deletions

View File

@ -42,6 +42,7 @@ div {
}
.pagi {
color: #b1cfd8;
text-align: center;
background-color: transparent;
box-shadow: none;

BIN
main~ Normal file

Binary file not shown.

View File

@ -119,8 +119,10 @@ func (p *PostsPage) RenderPostsPage(templates *template.Template, version int64)
nextPageNumber = (p.PageNumber + 1) % p.PagesCount
pagi := fmt.Sprintf(
`<a href="/posts/%d"><-</a>&nbsp;&nbsp;<a href="/posts/%d">-></a>`,
`<a href="/posts/%d"><-</a> %d/%d <a href="/posts/%d">-></a>`,
prevPageNumber,
p.PageNumber+1,
p.PagesCount,
nextPageNumber,
)

View File

@ -1 +0,0 @@
# 123