fix relative urls and make partials for article info

This commit is contained in:
Dmitry Kolosov 2020-02-18 20:52:31 +03:00
parent cc3c20d597
commit 9f0279bfe1
8 changed files with 38 additions and 81 deletions

View file

@ -7,13 +7,13 @@
{{ if eq .Paginator.PageNumber 2 }}
<a href="{{ .Site.BaseURL }}{{ .Site.LanguagePrefix }}">{{ $toNewPostsMessage }}</a>
{{ else }}
<a href="{{ .Paginator.Prev.URL }}">{{ $toNewPostsMessage }}</a>
<a href="{{ .Paginator.Prev.URL | absURL }}">{{ $toNewPostsMessage }}</a>
{{ end }}
{{ end }}
</div>
<div class="right pagination-item {{ if not .Paginator.HasNext }}disabled{{ end }}">
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}">{{ $toOldPostsMessage }}</a>
<a href="{{ .Paginator.Next.URL | absURL }}">{{ $toOldPostsMessage }}</a>
{{ end }}
</div>
</div>