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>
|
||||
<p>© {{ 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>.
|
||||
{{- end }}
|
||||
<p>© {{ 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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue