summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-11-18 16:37:23 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-11-18 16:37:23 +0530
commit0f2d8564ff1e648a553bc75b4385c3c8ac72e09e (patch)
tree8d1f3c118efa35c0f6fa070125dc1269fc05ed44
parent00ad5932d73fca7ec60acf5a6fa64bab6fed0224 (diff)
only showing releases link if more pages exist
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index d192e56..d9000da 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -3,7 +3,7 @@
<p>{{ .Site.Params.projectDescription }}</p>
<nav>
<a href="/" class="{{ if eq .Kind "home"}}active{{ end }}">Home</a>
- <a href="/releases" class="{{ if eq .Type "releases"}}active{{ end }}">Releases</a>
+ {{ if .Site.RegularPages }}<a href="/releases" class="{{ if eq .Type "releases"}}active{{ end }}">Releases</a>{{ end }}
{{ if .Site.Params.gitURL }}<a href="{{ .Site.Params.gitURL }}">Git</a>{{ end }}
{{ range .Site.Params.extraNavLinks }}
<a href="{{ index . 1 }}" target="_blank">{{ index . 0 }}</a>