mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 03:04:37 -04:00
Merge pull request #50 from cabello/patch-2
Check .Prev and .Next pointers before using it
This commit is contained in:
commit
7a3e32134b
@ -65,8 +65,12 @@ It makes use of [chrome templates](/layout/chrome)
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a class="previous" href="{{.Prev.Permalink}}"> {{.Prev.Title}}</a>
|
{{ if .Prev }}
|
||||||
<a class="next" href="{{.Next.Permalink}}"> {{.Next.Title}}</a>
|
<a class="previous" href="{{.Prev.Permalink}}"> {{.Prev.Title}}</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Next }}
|
||||||
|
<a class="next" href="{{.Next.Permalink}}"> {{.Next.Title}}</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user