]> njoseph.me Git - hyde.git/commitdiff
Lowercase variables for .Site.Params
authorphilgs <phil.gs@gmail.com>
Mon, 5 Jan 2015 11:22:06 +0000 (06:22 -0500)
committerphilgs <phil.gs@gmail.com>
Mon, 5 Jan 2015 11:22:06 +0000 (06:22 -0500)
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.

layouts/partials/sidebar.html

index b199a6b5124ade4b7739d2658b34f360053cceda..645b25c9a9fc2c593f55c35df450d8810e4fce02 100644 (file)
@@ -3,7 +3,7 @@
     <div class="sidebar-about">
       <h1>{{ .Site.Title }}</h1>
       <p class="lead">
-      {{ 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}}
+      {{ 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}}
       </p>
     </div>
 
@@ -14,6 +14,6 @@
       {{end}}
     </ul>
 
-    <p>{{ with .Site.Params.Copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
+    <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
   </div>
 </div>