We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7721de5 commit 3af23fdCopy full SHA for 3af23fd
1 file changed
layouts/partials/masthead.html
@@ -35,11 +35,13 @@
35
</label>
36
<ul class="floating-menu navigation-links visible-links">
37
{{- range .Site.Menus.navigation }}
38
- {{- with $.Site.GetPage .URL }}
39
<li class="masthead__menu-item">
+ {{- with .Page }}
40
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
41
- </li>
+ {{- else }}
42
+ <a href="{{ .URL }}">{{ .Name }}</a>
43
{{- end }}
44
+ </li>
45
46
</ul>
47
</div>
0 commit comments