Use aquo entities for next, prev links
This commit is contained in:
@@ -26,13 +26,13 @@
|
|||||||
<div class="mb-3" id="paige-prev-next">
|
<div class="mb-3" id="paige-prev-next">
|
||||||
{{ with $page.NextInSection }}
|
{{ with $page.NextInSection }}
|
||||||
<p class="mb-0 text-center text-secondary" id="paige-prev">
|
<p class="mb-0 text-center text-secondary" id="paige-prev">
|
||||||
← <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
|
‹ <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with $page.PrevInSection }}
|
{{ with $page.PrevInSection }}
|
||||||
<p class="mb-0 text-center text-secondary" id="paige-next">
|
<p class="mb-0 text-center text-secondary" id="paige-next">
|
||||||
<a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> →
|
<a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> ›
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -13,23 +13,23 @@
|
|||||||
<ul class="pagination">
|
<ul class="pagination">
|
||||||
{{ with $page.Paginator }}
|
{{ with $page.Paginator }}
|
||||||
<li class="page-item {{ if eq .PageNumber .First.PageNumber }} disabled {{ end }}">
|
<li class="page-item {{ if eq .PageNumber .First.PageNumber }} disabled {{ end }}">
|
||||||
<a aria-label="{{ i18n `paige_first` }}" class="page-link" href="{{ .First.URL }}"><span aria-hidden="true">⬅</span></a>
|
<a aria-label="{{ i18n `paige_first` }}" class="page-link" href="{{ .First.URL }}"><span aria-hidden="true">«</span></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="page-item {{ if not .Prev }} disabled {{ end }}">
|
<li class="page-item {{ if not .Prev }} disabled {{ end }}">
|
||||||
<a {{ if .Prev }} aria-label="{{ i18n `paige_previous` }}" {{ end }} class="page-link" {{ with .Prev }} href="{{ .URL }}" {{ end }}>
|
<a {{ if .Prev }} aria-label="{{ i18n `paige_previous` }}" {{ end }} class="page-link" {{ with .Prev }} href="{{ .URL }}" {{ end }}>
|
||||||
<span aria-hidden="true">←</span>
|
<span aria-hidden="true">‹</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="page-item {{ if not .Next }} disabled {{ end }}">
|
<li class="page-item {{ if not .Next }} disabled {{ end }}">
|
||||||
<a {{ if .Next }} aria-label="{{ i18n `paige_next` }}" {{ end }} class="page-link" {{ with .Next }} href="{{ .URL }}" {{ end }}>
|
<a {{ if .Next }} aria-label="{{ i18n `paige_next` }}" {{ end }} class="page-link" {{ with .Next }} href="{{ .URL }}" {{ end }}>
|
||||||
<span aria-hidden="true">→</span>
|
<span aria-hidden="true">›</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="page-item {{ if eq .PageNumber .Last.PageNumber }} disabled {{ end }}">
|
<li class="page-item {{ if eq .PageNumber .Last.PageNumber }} disabled {{ end }}">
|
||||||
<a aria-label="{{ i18n `paige_last` }}" class="page-link" href="{{ .Last.URL }}"><span aria-hidden="true">➡</span></a>
|
<a aria-label="{{ i18n `paige_last` }}" class="page-link" href="{{ .Last.URL }}"><span aria-hidden="true">»</span></a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user