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-10-31 17:37:47 +0300
committerHauke Stieler <mail@hauke-stieler.de>2018-10-31 17:37:47 +0300
commit8ae9e1167e32ff3fb724d7a4f23d0698e1585644 (patch)
tree6f335e1af7d888ddba9e726be6b1a0df4c98b231 /layouts/index.html
parentd042c277400e99603e27c4a28c50df7052e3be37 (diff)
Use "eq nil" instead of IsSet
IsSet does not work with nil-values.
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index fab8767..cf1dd7c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -7,7 +7,7 @@
{{ .Render "li" }}
{{ end }}
</div>
-{{ if (isset . "Paginator") }}
+{{ if (not (eq nil .Paginator)) }}
{{ partial "pagination.html" .Paginator }}
{{ end }}
{{ partial "footer.html" . }}