fix: Changed adding dots in the menu

This commit is contained in:
ptrcnull 2020-11-25 01:08:29 +01:00
parent d5addbfdbd
commit 3c57d0797d

View file

@ -7,10 +7,10 @@
<nav> <nav>
<a href="/"><b>Home</b></a> . <a href="/"><b>Home</b></a> .
{{ with .Site.Menus.main }} {{ with .Site.Menus.main }}
{{ range . }} {{ range $i, $e := . }}
<a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a>. <a href="{{ $e.URL | relURL }}"><b>{{ $e.Name }}</b></a>{{ if ne (len .Site.Menus.main) $i }} . {{ end }}
{{ end }}
{{ end }} {{ end }}
</nav> </nav>
</p> </p>
{{ end }}
</header> </header>