add nested menus capability

This commit is contained in:
madoke
2023-01-06 16:57:51 +00:00
parent b4050f08da
commit dfb18c126c
8 changed files with 116 additions and 17 deletions

View File

@@ -0,0 +1,5 @@
<a href="{{ .URL }}" {{ if or (strings.HasPrefix .URL "http:") (strings.HasPrefix .URL "https:") }} target="_blank"{{ end }} class="text-base font-medium text-gray-500 hover:text-gray-900" title="{{ .Title }}">
{{ partial "icon.html" .Pre }}
{{ if and .Pre .Name }} &nbsp; {{ end }}
{{ .Name | markdownify | emojify }}
</a>