fix: More fixes for dots in the header/footer

This commit is contained in:
ptrcnull 2020-11-25 01:43:06 +01:00
parent 3c57d0797d
commit c41d408a51
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
<footer>
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>.
{{- range .Site.Menus.footer }}
<a href="{{ .URL }}"><b>{{ .Name }}</b></a>.
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a> .
{{- range $i, $e := .Site.Menus.footer }}
<a href="{{ $e.URL }}"><b>{{ $e.Name }}</b></a>{{ if ne (sub (len $.Site.Menus.footer) 1) $i }} . {{ end }}
{{- end }}
</p>
</footer>

View file

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