previous and next post functionality has been added
This commit is contained in:
parent
5333b63af9
commit
b264c68630
3 changed files with 14 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue