Use .Site.BaseURL to generate sidebar "Home" link
This commit is contained in:
parent
daead1a8b0
commit
e199c3b532
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="sidebar-nav">
|
<ul class="sidebar-nav">
|
||||||
<li><a href="/">Home</a> </li>
|
<li><a href="{{ .Site.BaseURL }}">Home</a> </li>
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<li><a href="{{.URL}}"> {{ .Name }} </a></li>
|
<li><a href="{{.URL}}"> {{ .Name }} </a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in New Issue