previous and next post functionality has been added

This commit is contained in:
Peter 2025-03-18 13:35:25 -04:00
parent 5333b63af9
commit b264c68630
3 changed files with 14 additions and 2 deletions

View file

@ -30,6 +30,15 @@
<dd>{{ i18n "reading_time_desc" .ReadingTime }}</dd>
{{ end }}
</dl>
{{ $pages := .CurrentSection.Pages.ByWeight }}
{{ with $pages.Prev . }}
<a href="{{ .RelPermalink }}">« Entrada anterior</a>
{{ end }}
/
{{ with $pages.Next . }}
<a href="{{ .RelPermalink }}">Entrada siguiente »</a>
{{ end }}
</section>
{{ end }}
<div>
@ -57,6 +66,7 @@
{{ end }}
</ul>
{{ end }}
</br>
</div>
</div>
</br>