This commit is contained in:
parent
911b938bb6
commit
727f9c6e53
11 changed files with 57 additions and 6 deletions
|
@ -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 = "Страница не найдена..."
|
||||
|
|
3
content/contacts/_index.md
Normal file
3
content/contacts/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Контакты"
|
||||
---
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
title: Контакты
|
||||
---
|
||||
showFullContent: true
|
||||
---
|
||||
|
||||
**`Email`** [sadml[at]disroot.org](mailto:sadml@disroot.org)
|
3
content/donate/_index.md
Normal file
3
content/donate/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Поддержка"
|
||||
---
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: "Поддержка"
|
||||
showFullContent: true
|
||||
---
|
||||
---
|
||||
|
3
content/services/_index.md
Normal file
3
content/services/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Сервисы"
|
||||
---
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
showFullContent: true
|
||||
title: Сервисы
|
||||
---
|
||||
|
||||
Прим. `OIDC` = вход через аккаунт [Nextcloud](#nextcloud)
|
|
@ -14,4 +14,5 @@
|
|||
</article>
|
||||
|
||||
</main>
|
||||
{{ partial "posts_pagination.html" . }}
|
||||
{{ end }}
|
||||
|
|
16
layouts/partials/pagination.html
Normal file
16
layouts/partials/pagination.html
Normal 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>
|
26
layouts/partials/posts_pagination.html
Normal file
26
layouts/partials/posts_pagination.html
Normal 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 }}
|
Loading…
Reference in a new issue