Кнопочки для переключения статей
All checks were successful
/ site (push) Successful in 2s

This commit is contained in:
Артём 2024-07-02 20:04:44 +03:00
parent 911b938bb6
commit 727f9c6e53
Signed by: SadmL
GPG key ID: EEFBB39006B28920
11 changed files with 57 additions and 6 deletions

View file

@ -64,6 +64,7 @@ DefaultContentLanguage = "ru"
# can be overridden in a page's front-matter
# TocTitle = "Содержание" # default
[languages]
[languages.ru]
languageCode = 'ru'
languageName = 'RU'
@ -74,7 +75,7 @@ DefaultContentLanguage = "ru"
copyright = ""
menuMore = "Меню"
readMore = "Читать далее"
readOtherPosts = "Читать другие статьи"
readOtherPosts = "Другие статьи"
newerPosts = "Новые посты"
olderPosts = "Старые посты"
missingContentMessage = "Страница не найдена..."

View file

@ -0,0 +1,3 @@
---
title: "Контакты"
---

View file

@ -1,6 +1,5 @@
---
title: Контакты
---
showFullContent: true
---
**`Email`** [sadml[at]disroot.org](mailto:sadml@disroot.org)

3
content/donate/_index.md Normal file
View file

@ -0,0 +1,3 @@
---
title: "Поддержка"
---

View file

@ -1,5 +1,5 @@
---
title: "Поддержка"
showFullContent: true
---
---

View file

@ -0,0 +1,3 @@
---
title: "Сервисы"
---

View file

@ -1,6 +1,5 @@
---
showFullContent: true
title: Сервисы
---
Прим. `OIDC` = вход через аккаунт [Nextcloud](#nextcloud)

View file

@ -14,4 +14,5 @@
</article>
</main>
{{ partial "posts_pagination.html" . }}
{{ end }}

View file

@ -0,0 +1,16 @@
<div class="pagination">
<div class="pagination__buttons">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="button previous">
<span class="button__icon"></span>
<span class="button__text">{{ $.Site.Params.newerPosts | default "Newer posts" }}</span>
</a>
{{ end }}
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="button next">
<span class="button__text">{{ $.Site.Params.olderPosts | default "Older posts" }}</span>
<span class="button__icon"></span>
</a>
{{ end }}
</div>
</div>

View file

@ -0,0 +1,26 @@
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">{{ $.Site.Params.ReadOtherPosts }}</span>
<hr />
</div>
<div class="pagination__buttons">
{{ if .NextInSection }}
<span class="button previous">
<a href="{{ .NextInSection.Permalink }}">
<span class="button__icon"></span>
<span class="button__text">{{ .NextInSection.Title }}</span>
</a>
</span>
{{ end }}
{{ if .PrevInSection }}
<span class="button next">
<a href="{{ .PrevInSection.Permalink }}">
<span class="button__text">{{ .PrevInSection.Title }}</span>
<span class="button__icon"></span>
</a>
</span>
{{ end }}
</div>
</div>
{{ end }}