fix paginator and site-description

This commit is contained in:
fruworg 2023-07-30 21:33:19 +05:00
parent 905ea46ed8
commit c7647125bd
3 changed files with 4 additions and 2 deletions

View File

@ -228,6 +228,8 @@ article .title {
.site-description { .site-description {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
text-align: left;
display: inline-block;
} }
.tags li::before { .tags li::before {

View File

@ -8,7 +8,7 @@
<main class="list"> <main class="list">
<div class="site-description"> <div class="site-description">
{{- if isset .Site.Params "subtitle" -}} {{- if isset .Site.Params "subtitle" -}}
<p>{{ .Site.Params.Subtitle | markdownify }}</p> <pre>{{ .Site.Params.Subtitle | markdownify }}</pre>
{{- end -}} {{- end -}}
</div> </div>
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}

View File

@ -8,7 +8,7 @@
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a> <a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
{{ end }} {{ end }}
</span> </span>
<span class="page-item page-next"> <span class="page-item page-next" style="float: right">
{{ if $pag.HasNext }} {{ if $pag.HasNext }}
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a> <a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
{{ else }} {{ else }}