Skip to content

Commit

Permalink
Merge pull request #50 from sofixa/master
Browse files Browse the repository at this point in the history
fix WARNING: calling IsSet with unsupported type ptr (*hugolib.MenuEn…
  • Loading branch information
goransv authored Apr 4, 2019
2 parents 706ec3d + 654dd66 commit ddc1cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/base/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{{ end }}
</ul>
{{ else }}
<a href="{{ .URL | absLangURL }}" {{ if and ( isset . "Name" ) ( ne .Name "" ) }} title="{{ .Name }}"{{ end }}>
<a href="{{ .URL | absLangURL }}" {{ if ne .Name ""}} title="{{ .Name }}"{{ end }}>
{{ .Pre }}
{{ .Name }}
</a>
Expand All @@ -45,7 +45,7 @@
{{ $currentNode := . }}
{{ range .Site.Menus.switchlang }}
<li class="{{if $currentNode.IsMenuCurrent "main" . }}active{{end}}">
<a href="javascript:changeLanguage('{{ .URL | markdownify }}');" {{ if and ( isset . "Name" ) ( ne .Name "" ) }} title="{{ .Name }}"{{ end }}>
<a href="javascript:changeLanguage('{{ .URL | markdownify }}');" {{ if ne .Name "" }} title="{{ .Name }}"{{ end }}>
{{ .Pre }}
{{ .Name }}
</a>
Expand Down

0 comments on commit ddc1cd4

Please sign in to comment.