Committer: root <root@fruw.org>

This commit is contained in:
root
2023-07-29 19:04:05 +05:00
parent 0ff0b4fd3f
commit 8b649389a3
6 changed files with 216 additions and 165 deletions

View File

@ -1,8 +1,8 @@
{{ define "main" }}
{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
<h1>Все посты - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
<h1 class="page-title">Все посты</h1>
{{ end }}
<ul class="posts">

View File

@ -1,8 +1,8 @@
{{ define "main" }}
{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
<h1>Все посты - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
<h1 class="page-title">Все посты</h1>
{{ end }}
<ul class="posts">

View File

@ -1,5 +1,5 @@
{{ define "main" }}
<h1 class="page-title">All tags</h1>
<h1 class="page-title">Все теги</h1>
{{ $biggest := 1 }}
{{ $smallest := 1 }}

View File

@ -4,11 +4,15 @@
<span class="page-item page-prev">
{{ if $pag.HasPrev }}
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Назад</span></a>
{{ else }}
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
{{ end }}
</span>
<span class="page-item page-next">
{{ if $pag.HasNext }}
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
{{ else }}
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Назад</span></a>
{{ end }}
</span>
</ul>