Fix footer links not working
This commit is contained in:
parent
981ad20054
commit
88511383fa
1 changed files with 5 additions and 1 deletions
|
@ -33,7 +33,11 @@
|
|||
<ul class="nice-list">
|
||||
{{ range $.Site.Menus.footer }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ $url := .URL }}
|
||||
{{ if not (strings.Contains $url "https") }}
|
||||
{{ $url = printf "%s%s" $.Site.Home.Permalink .URL }}
|
||||
{{ end }}
|
||||
<a href="{{ $url }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Reference in a new issue