initial commit

This commit is contained in:
Dmitry Kolosov 2020-01-12 09:51:51 +03:00
commit 8ae4ae106c
17 changed files with 623 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }}
<div class="pagination">
<div class="left">
{{ if .Paginator.HasPrev }}
{{ if eq .Paginator.PageNumber 2 }}
<a class="pagination-item" href="{{ .Site.BaseURL }}{{ .Site.LanguagePrefix }}">К новым постам</a>
{{ else }}
<a class="pagination-item" href="{{ .Paginator.Prev.URL }}">К новым постам</a>
{{ end }}
{{ else }}
<span class="pagination-item disabled">К новым постам</span>
{{ end }}
</div>
<div class="right">
{{ if .Paginator.HasNext }}
<a class="pagination-item" href="{{ .Paginator.Next.URL }}">К старым постам</a>
{{ else }}
<span class="pagination-item disabled">К старым постам</span>
{{ end }}
</div>
</div>
{{ end }}