Browse Source

Use .Site.BaseURL to generate sidebar "Home" link

digitalcraftsman 7 years ago
parent
commit
c336c33527
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/partials/sidebar.html

+ 1
- 1
layouts/partials/sidebar.html View File

8
     </div>
8
     </div>
9
 
9
 
10
     <ul class="sidebar-nav">
10
     <ul class="sidebar-nav">
11
-      <li><a href="/">Home</a> </li>
11
+      <li><a href="{{ .Site.BaseURL }}">Home</a> </li>
12
       {{ range .Site.Menus.main }}
12
       {{ range .Site.Menus.main }}
13
         <li><a href="{{.URL}}"> {{ .Name }} </a></li>
13
         <li><a href="{{.URL}}"> {{ .Name }} </a></li>
14
       {{end}}
14
       {{end}}