Move customMenus and other site related config into data section

This commit is contained in:
Emruz Hossain 2020-09-03 19:49:01 +06:00
parent faa91755f9
commit 9f923f97d3
10 changed files with 56 additions and 47 deletions

View file

@ -56,7 +56,7 @@
<a class="nav-link" id="blog-link" href="/posts">Posts</a>
</li>
{{ end }}
{{ range site.Params.customMenus }}
{{ range (index .Site.Data .Site.Language.Lang).site.customMenus }}
<li class="nav-item">
<a class="nav-link" href="{{ .url }}">{{ .name }}</a>
</li>