diff options
author | Steve Francia <steve.francia@gmail.com> | 2013-08-20 20:54:31 -0700 |
---|---|---|
committer | Steve Francia <steve.francia@gmail.com> | 2013-08-20 20:54:31 -0700 |
commit | 6f424175bfc9faa1c7153523ba460b09f1cd7a7e (patch) | |
tree | 11d617c1f9eda32264b78c05e980db1d73e0d6a6 | |
parent | 3d0dc1acb1089022172f61ed65f6002f3fdb9780 (diff) | |
parent | acd5ea0e75cc577c55b80e40fc26ed7c2b66ea63 (diff) |
Merge pull request #50 from cabello/patch-2
Check .Prev and .Next pointers before using it
-rw-r--r-- | docs/content/layout/content.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/content/layout/content.md b/docs/content/layout/content.md index e6df58867..7bf335e2a 100644 --- a/docs/content/layout/content.md +++ b/docs/content/layout/content.md @@ -65,8 +65,12 @@ It makes use of [chrome templates](/layout/chrome) </ul> </div> <div> - <a class="previous" href="{{.Prev.Permalink}}"> {{.Prev.Title}}</a> - <a class="next" href="{{.Next.Permalink}}"> {{.Next.Title}}</a> + {{ if .Prev }} + <a class="previous" href="{{.Prev.Permalink}}"> {{.Prev.Title}}</a> + {{ end }} + {{ if .Next }} + <a class="next" href="{{.Next.Permalink}}"> {{.Next.Title}}</a> + {{ end }} </div> </aside> |