Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2018-09-10 20:50:26 +0300
committerHauke Stieler <mail@hauke-stieler.de>2018-09-10 20:50:26 +0300
commit7fd9381d42c5c3327236763fbbe81f517acb91df (patch)
tree3c504d1f8e41a3359a4092a0fe643048ca2f554d /layouts/index.html
parenta5990087cfe28dd770d556aff140315956fd7662 (diff)
Fix nil-panic in example project
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 44bd07a..fab8767 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -7,5 +7,7 @@
{{ .Render "li" }}
{{ end }}
</div>
-{{ partial "pagination.html" .Paginator }}
+{{ if (isset . "Paginator") }}
+ {{ partial "pagination.html" .Paginator }}
+{{ end }}
{{ partial "footer.html" . }}