blogamore/layouts/shortcodes/link.html

19 lines
434 B
HTML
Raw Normal View History

2023-01-09 00:13:42 +01:00
{{ $dataName := .Get "data" }}
<ul>
{{ range (where (index .Site.Data (split $dataName "/")) "visible" 1) }}
<li>
{{ .name }}
<ul>
{{ range (where .urls "visible" 1) }}
<li>
<a href="{{ .url }}" target="{{- .target -}}" alt="{{- .description }}">{{ .name }}</a>
<br/>
{{ .description }}
</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>