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.
19 lines
639 B
HTML
19 lines
639 B
HTML
<header>
|
||
<nav>
|
||
<h1><a href="/">@{{ .Site.Author.handle }}</a>’s {{ .Site.Title }}.</h1>
|
||
<div class="menu">
|
||
{{ $.Scratch.Add "sections" .Site.Params.rsssections }}
|
||
<ul>
|
||
{{ range .Site.Menus.main }}
|
||
<li>
|
||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||
{{ if in ($.Scratch.Get "sections") .Name }}
|
||
<a href="{{ .URL }}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
|
||
{{ end }}
|
||
</li>
|
||
{{ end }}
|
||
{{ with .Site.Author.aboutpage }}<li><a href="{{ . }}">About</a></li>{{ end }}
|
||
</ul>
|
||
</div>
|
||
</nav>
|
||
</header>
|