use mainSections, update Permalinks and asset URLS

This commit is contained in:
Robert Austin 2019-03-14 10:56:09 +10:00
parent eba613e044
commit d87fbd97cc
17 changed files with 59 additions and 50 deletions

View file

@ -3,8 +3,7 @@
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li class="menu-item-{{ .Name | lower }}{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}">
<a href="{{.URL}}">
{{ .Pre }}
<a href="{{ .URL }}">
<span>{{ .Name }}</span>
</a>
</li>