Merge pull request #689 from schachem/main

 Fix missing URL for Top-level menu entry in nested menu
This commit is contained in:
Nuno Coração 2023-05-12 14:18:33 +01:00 committed by GitHub
commit 8ca246ce31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,8 @@
{{ partial "icon.html" .Pre }}
</span>
{{ end }}
<a class="text-base font-medium text-gray-500 hover:text-gray-900" title="{{ .Title }}">
<a {{ if .URL }} href="{{ .URL }}" {{ if or (strings.HasPrefix .URL "http:" ) (strings.HasPrefix .URL "https:" ) }}
target="_blank" {{ end }} {{ end }} class="text-base font-medium text-gray-500 hover:text-gray-900" title="{{ .Title }}">
{{ .Name | markdownify | emojify }}
</a>
<span>
@ -31,4 +32,4 @@
</div>
</div>
</div>
</div>
</div>