Browse Source

Lowercase variables for .Site.Params

Variables under .Site.Params are accessed with all lower-case identifiers. Hugo won't find them with an upper-case first letter, regardless of how they're formatted in the site `config` file.
philgs 10 years ago
parent
commit
9ea795e148
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      layouts/partials/sidebar.html

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

3
     <div class="sidebar-about">
3
     <div class="sidebar-about">
4
       <h1>{{ .Site.Title }}</h1>
4
       <h1>{{ .Site.Title }}</h1>
5
       <p class="lead">
5
       <p class="lead">
6
-      {{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
6
+      {{ with .Site.Params.description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
7
       </p>
7
       </p>
8
     </div>
8
     </div>
9
 
9
 
14
       {{end}}
14
       {{end}}
15
     </ul>
15
     </ul>
16
 
16
 
17
-    <p>{{ with .Site.Params.Copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
17
+    <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
18
   </div>
18
   </div>
19
 </div>
19
 </div>