Made the theme compatible with Hugo 0.18.

At least in Hugo 0.18 (I don't know for prior versions), the variables in the
templates are all set to lowercase even if they are not lowercase in the
config file.

For instance, for a configuration as follows:
[Author]
   Handle = "bla"
the variable must be used as .Site.Author.handle and not .Site.Author.Handle.
This commit is contained in:
Ghyslain Leclerc 2016-12-28 21:13:54 -05:00
parent 6a9c9a5469
commit 8262ab6f2d
5 changed files with 16 additions and 16 deletions

View file

@ -1,22 +1,22 @@
<footer>
<div class="footer_text">
<div>
<h3>Hi, <a href="{{ .Site.Author.AboutPage }}">I'm {{ .Site.Author.FirstName }}</a></h3>
<h3>Hi, <a href="{{ .Site.Author.aboutpage }}">I'm {{ .Site.Author.firstname }}</a></h3>
<p>
{{ partial "bio.html" . }}
</p>
</div>
<div>
<h3><a href="https://www.flickr.com/photos/{{ .Site.Author.FlickrID }}/">Photo Stream</a></h3>
<h3><a href="https://www.flickr.com/photos/{{ .Site.Author.flickrid }}/">Photo Stream</a></h3>
<div id="photos"></div>
</div>
</div>
</div>
{{ if .Site.Params.ShowCopyright }}
{{ if .Site.Params.showcopyright }}
<div class="footer_copyright">
&copy; {{ .Now.Format "2006" }} <a href="{{ .Site.Author.AboutPage }}">{{ .Site.Author.FirstName }} {{ .Site.Author.LastName }}</a>
{{ with .Site.Author.Location }} - Made in {{ . }}{{ end }}
&copy; {{ .Now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a>
{{ with .Site.Author.location }} - Made in {{ . }}{{ end }}
</div>
{{ end }}
</footer>