added option to hide the posts link

This commit is contained in:
Gabriele Musco 2021-07-06 19:29:08 +02:00
parent 8082b14326
commit 38a8b48e8c
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
2 changed files with 4 additions and 1 deletions

View file

@ -18,7 +18,9 @@
{{ end }}
<ul id="main-nav">
<li><a href="/">Home</a></li>
<li><a href="/posts">Posts</a></li>
{{ if (.Site.Params.showPostsLink | default true) }}
<li><a href="/posts">Posts</a></li>
{{ end }}
{{ range site.Params.extraContentDirs }}
<li><a href="/{{ . }}">{{ . | humanize }}</a></li>
{{ end }}