fix: More fixes for dots in the header/footer
This commit is contained in:
parent
3c57d0797d
commit
c41d408a51
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a> .
|
<p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a> .
|
||||||
{{- range .Site.Menus.footer }}
|
{{- range $i, $e := .Site.Menus.footer }}
|
||||||
<a href="{{ .URL }}"><b>{{ .Name }}</b></a>.
|
<a href="{{ $e.URL }}"><b>{{ $e.Name }}</b></a>{{ if ne (sub (len $.Site.Menus.footer) 1) $i }} . {{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<a href="/"><b>Home</b></a> .
|
<a href="/"><b>Home</b></a> .
|
||||||
{{ with .Site.Menus.main }}
|
{{ with .Site.Menus.main }}
|
||||||
{{ range $i, $e := . }}
|
{{ 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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue