projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eff8457
)
Check .Prev and .Next pointers before using it
author
Danilo Cabello
<danilo.cabello@gmail.com>
Tue, 20 Aug 2013 16:13:27 +0000
(12:13 -0400)
committer
Danilo Cabello
<danilo.cabello@gmail.com>
Tue, 20 Aug 2013 16:13:27 +0000
(12:13 -0400)
docs/content/layout/content.md
patch
|
blob
|
history
diff --git
a/docs/content/layout/content.md
b/docs/content/layout/content.md
index e6df58867d5f21a38c1858f6d3f74d6cf238d69c..7bf335e2ac0f619d3467268699e49646a5b86d84 100644
(file)
--- 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>